mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +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