iirjdart 0.1.0 iirjdart: ^0.1.0 copied to clipboard
An IIR filter library written in Dart. Highpass, lowpass, bandpass and bandstop as Butterworth, Bessel and Chebyshev Type I/II.
import 'package:iirjdart/butterworth.dart';
void main() {
List<double> dataToFilter = List.filled(500, 0.0);
dataToFilter[10] = 1.0;
Butterworth butterworth = Butterworth();
butterworth.lowPass(4, 250, 50);
List<double> filteredData = [];
for(var v in dataToFilter) {
filteredData.add(butterworth.filter(v));
}
print(filteredData);
}