Skip to content

Commit f3d1ec1

Browse files
authored
Resolved issue computing frequency with maximal noise at the simple spectrum chart
1 parent 7e9582e commit f3d1ec1

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
@@ -596,7 +596,7 @@ GraphSpectrumCalc._normalizeFft = function(fftOutput) {
596596
}
597597
}
598598

599-
const maxNoiseFrequency = maxNoiseIdx / fftLength * maxFrequency;
599+
const maxNoiseFrequency = maxNoiseIdx / magnitudeLength * maxFrequency;
600600

601601
const fftData = {
602602
fieldIndex : this._dataBuffer.fieldIndex,

0 commit comments

Comments
 (0)