mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 17:29:31 +08:00
Add tests for IIRFilter.java
, fix bug in setCoeffs
method (#5590)
This commit is contained in:
@ -58,7 +58,7 @@ public class IIRFilter {
|
||||
throw new IllegalArgumentException("bCoeffs must be of size " + order + ", got " + bCoeffs.length);
|
||||
}
|
||||
|
||||
for (int i = 0; i <= order; i++) {
|
||||
for (int i = 0; i < order; i++) {
|
||||
coeffsA[i] = aCoeffs[i];
|
||||
coeffsB[i] = bCoeffs[i];
|
||||
}
|
||||
|
Reference in New Issue
Block a user