analyzeSpectrum

analyzeSpectrum
(
R
T
)
(
in T[] sample
,
in size_t samplingRate
)
out (spectrum) { import std.math : isNaN; foreach (e; spectrum.powers) { assert (!isNaN(e)); } foreach (e; spectrum.phases) { assert (!isNaN(e)); } foreach (e; spectrum.frequencyRange) { assert (!isNaN(e)); } }

Meta