We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f28e4 commit 959b0a3Copy full SHA for 959b0a3
bbn_wave_freq_m5atomS3/SeaStateRegularity.h
@@ -383,10 +383,11 @@ void updatePhaseCoherence() {
383
if (ratio < 0.7f || ratio > 1.3f) return;
384
}
385
386
- // Multi-bin extent (adaptive to narrowness)
387
- int K = MAX_K; // always use full span
388
- float STEP = 0.06f; // ≈6 % spacing → covers ~4.3× up/down ⇒ handles 3× f-shift
389
-
+ int K = MAX_K; // keep full span
+ // Choose target upward span to capture Fenton/cnoidal harmonics (≥5× recommended)
+ constexpr float TARGET_SPAN_UP = 6.0f; // cover to ~6·ω_used (includes 5th harmonic)
+ const float r = std::exp(std::log(TARGET_SPAN_UP) / float(K)); // ratio step
390
+
391
if (!bins_init) {
392
for (int i = 0; i < NBINS; i++) {
393
bin_c[i] = 1.0f;
0 commit comments