/ concept-collection / timeseries-compressibility
Sign in
concept-collection / timeseries-compressibility
Give the sigma slider stops that land on useful values
The old 1-2-5 decade ladder skipped straight from 2 to 5 to 10, which is exactly the range where quantization behavior changes fastest. Go dense through the single digits and step by roughly 1.5x above them.
Jeremy Magland <jmagland@flatironinstitute.org> committed commit f88eddacc0dd parent fec2284 Browse files
1 changed file+4−3
src/model/filters.tsmodified+4−3View file
@@ -40,10 +40,11 @@ export const DEFAULT_SPEC: FilterSpec = {
4040
4141 /**
4242 * Every control snaps to a ladder of round values — a slider that stops on
43- * 6 kHz and 101 taps rather than 5847 Hz and 97. σ is the 1-2-5 decade
44- * ladder; frequency adds 3, 4, 6, 8 so the usual band edges are reachable.
43+ * 6 kHz and 101 taps rather than 5847 Hz and 97. σ is dense through the
44+ * single digits where the interesting transitions live, then roughly ×1.5
45+ * steps; frequency adds 3, 4, 6, 8 so the usual band edges are reachable.
4546 */
46-export const SIGMA_STOPS = [0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100]
47+export const SIGMA_STOPS = [0.5, 1, 2, 3, 4, 5, 8, 12, 20, 30, 50, 100]
4748 export const TAP_STOPS = [9, 15, 21, 31, 45, 65, 101, 151, 201, 301]
4849 export const WIDTH_STOPS = [2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 48, 64]
4950
moveopenescclose