Skip to content

Commit 2cde4dd

Browse files
committed
The minimum PSD value is set as -70dBm
1 parent 014a06e commit 2cde4dd

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
@@ -570,7 +570,7 @@ GraphSpectrumCalc._psd = function(samples, pointsPerSegment, overlapCount, scal
570570
psdOutput[i] += p;
571571
}
572572

573-
const min_avg = 1e-5; // limit min value for -50db
573+
const min_avg = 1e-7; // limit min value for -70db
574574
let avg = psdOutput[i] / segmentsCount;
575575
avg = Math.max(avg, min_avg);
576576
psdOutput[i] = 10 * Math.log10(avg);

0 commit comments

Comments
 (0)