Skip to content

Commit d99a907

Browse files
committed
delete negative number validation for getEnergy
1 parent 46a6b04 commit d99a907

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/fft.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,6 @@ class FFT {
350350
var index = Math.round((frequency1 / nyquist) * this.freqDomain.length);
351351
return this.freqDomain[index];
352352
}
353-
if (frequency1 < 0 || frequency2 < 0) {
354-
throw 'invalid input for getEnergy()';
355-
}
356353

357354
// if two parameters:
358355
// if second is higher than first

0 commit comments

Comments
 (0)