Thresholding
📐 Definition
Section titled “📐 Definition”For threshold and scalar ,
Variants include:
- hard thresholding to a constant level (e.g. ),
- soft (shrinkage) thresholding .
Domain and Codomain
Section titled “Domain and Codomain”Domain: real numbers (extendable componentwise). For the definition above, the codomain is .
⚙️ Key Properties
Section titled “⚙️ Key Properties”Idempotent. For it is discontinuous at (a jump from to ); for it reduces to the ReLU map and is continuous but not differentiable at the origin.
Soft-thresholding is continuous and -Lipschitz (non-expansive), and is commonly used when stability under perturbations is desired.
As , thresholding becomes the identity; as , it maps all values to .
🎯 Special Cases and Limits
Section titled “🎯 Special Cases and Limits”- approaches identity.
- maps everything to .
🔗 Related Functions
Section titled “🔗 Related Functions”Clamping enforces two-sided bounds; gain control can be applied after thresholding to rescale retained components.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield uses thresholding mainly as a “gate” on features and diagnostics:
- Phase feature extraction (
phase_featureoperator) suppresses samples with magnitude belowthresholdbefore writing features. - Phase coherence diagnostics ignore samples below a magnitude gate derived from configured absolute/relative thresholds before computing coherence order parameters.
- Operator logic commonly uses small epsilons/thresholds to avoid division by zero (e.g. when forming unit directions like ).
Historical Foundations
Section titled “Historical Foundations”📜 Hard Thresholds and Sparsity
Section titled “📜 Hard Thresholds and Sparsity”Thresholding is the simplest nonlinear sparsification primitive and appears in denoising and compressed representations as a hard “keep/drop” rule.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”It is used when exact sparsity or strict cutoffs are desired; smooth surrogates are often used when differentiability is required.
📚 References
Section titled “📚 References”- Mallat, A Wavelet Tour of Signal Processing