[wpimath] Remove redundant LinearFilter.finiteDifference() argument (#4335)

The number of samples is already determined by the length of the stencil
list.
This commit is contained in:
Tyler Veness
2022-07-22 10:50:30 -07:00
committed by GitHub
parent 6f1e01f8bd
commit 3ccf806064
3 changed files with 8 additions and 8 deletions

View File

@@ -282,7 +282,7 @@ class LinearFilterTest {
stencil[i] = -(samples - 1) / 2 + i;
}
var filter = LinearFilter.finiteDifference(derivative, samples, stencil, h);
var filter = LinearFilter.finiteDifference(derivative, stencil, h);
for (int i = (int) (min / h); i < (int) (max / h); ++i) {
// Let filter initialize