simple_kalman 0.0.1 simple_kalman: ^0.0.1 copied to clipboard
A project to implement a one-dimensional Kalman filter in Dart language
Simple Kalman #
A project to implement a one-dimensional Kalman filter in Dart language
Example usage:
Create Kalman filter
SimpleKalman kalman = SimpleKalman(256, 150, 0.9);
@first parameter - value range; @second parameter - error range; @third parameter - filter sensitivity factor (0.001 ... 10) 0.001 - low sensitivity (smooth change of values) 10 - high sensitivity (sharp change of values)
import 'package:simple_kalman/simple_kalman.dart';
void main() {
List<int> _data = [127, 0, 133, 136, 139, 256, 145, 148, 151];
SimpleKalman kalman = SimpleKalman(256, 150, 0.9);
for (var value in _sinData) {
print("Origin: $value Filtered: ${kalman.filtered(value.toDouble())}");
}
Changelog #
Refer to the Changelog to get all release notes.
Features and bugs #
Please file feature requests and bugs at the issue tracker.