Skip to content

designmatters/InputStabilizer

Repository files navigation

InputStabilizer

Originally developed for stabilizing sensor data, InputStabilizer<T> filters out noise by only returning a value after it appears N times in a row.

var s = new InputStabilizer<string>(3);
s.GetStableInput("open"); // null
s.GetStableInput("open"); // null
s.GetStableInput("open"); // "open"

About

A lightweight generic utility for stabilising fluctuating input values in .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages