Repository navigation
Releases
fractalnoise v2.0.0
nstall: attach Fractal Noise Toolbox.mltbx (MATLAB R2025a or later), or add toolbox/ to the path.
Fixes. estimateIRASA did not remove oscillatory peaks up to v1.2.0, so its exponent was a plain spectral slope. shapeNoise gave a shallow surrogate about one time in five at alpha 3.5-4.5; it now builds its surrogate from an end-matched segment of the residual. Both old behaviours remain available by name.
New. harmonicTemplate and harmonicContent remove and diagnose the periodic part of a record. shapeNoiseWrapper and cetNoiseWrapper (bundled HadCET, Open Government Licence v3.0) do the whole path in one call. summariseShapeNoiseBatch reports acceptance across many surrogates. convertScalingExponent converts between alpha, d, the DFA exponent, Hurst H and fractal dimension D (D from H is nominal, valid only under self-similarity; Gneiting & Schlather 2004).
Changed. shapeNoise needs at least 120 samples by default and warns when no AlphaBand is given. The wrappers require K, the number of harmonics.
Guidance. Keep the upper Whittle band edge below about 25% of Nyquist (README, "Choosing the band").
Tests. 168 tests: 156 passed, 0 failed, 12 filtered by optional dependencies.
Full details: CHANGELOG.md and the README section "Upgrading from 1.x".
v1.2.0 — estimateWhittleAlpha, break-free noiseXu, prewhitened IRASA
Additive release: existing calls give identical results.
New
- estimateWhittleAlpha: spectral exponent by prewhitened, band-limited local Whittle (Robinson 1995). Reliable for steep spectra (bias within about ±0.2 up to alpha 6.5 on exact references). Base MATLAB only. Errors loudly on bad input rather than returning NaN.
Changed
- noiseXu: Phi = 1 is now allowed and gives a break-free power law. The default (Phi = 0.99) is unchanged and has a low-frequency break at (1 - Phi)fs/(2pi), which the help text now states.
- estimateIRASA: new PSD="welch" and Prewhiten=k options. Defaults are bit-identical to v1.1.0.
Why
On spectra without a low-frequency break, default multitaper IRASA can be off by several units at alpha > 3.5 (over-reading at fs 240, collapsing at fs 100). On noise with a break, which is what noiseXu makes by default, it stays within ±0.1, so earlier benchmarks missed this. Prewhiten=k removes the error. If in doubt, use estimateWhittleAlpha, or estimateIRASA(x, fs, f1, f2, Prewhiten=k) with k from estimateWhittleAlpha.
Also
- README rewritten: which estimator to use, and what noiseXu actually generates.
- Validation scripts (MATLAB/Python/R stage-1 calibration, reproduced across three seeds) are in validation/.
- Requires MATLAB R2025a or later; Signal Processing Toolbox for estimateIRASA and checkSpectralKnee.