Skip to content

Commit 743a293

Browse files
committed
Resolved issue computing frequency with maximal noise at the simple spectrum chart
1 parent 65ff687 commit 743a293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum_calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ GraphSpectrumCalc._normalizeFft = function(fftOutput) {
598598
}
599599
}
600600

601-
const maxNoiseFrequency = maxNoiseIdx / fftLength * maxFrequency;
601+
const maxNoiseFrequency = maxNoiseIdx / magnitudeLength * maxFrequency;
602602

603603
const fftData = {
604604
fieldIndex : this._dataBuffer.fieldIndex,

0 commit comments

Comments
 (0)