LowPass

open class LowPass : UnaryFunction

A Low-pass filter that uses a single gain to measure filter response time, cleaning up noisy sensor inputs.

Constructors

Link copied to clipboard
constructor(gain: Double)
Construct a new Low-pass filter with a gain in the domain (0, 1) exclusive.

Inherited properties

Link copied to clipboard
The identity function that simply returns the input value.

Functions

Link copied to clipboard
open fun apply(input: Double): Double
Calculate a Low-pass filter estimate.

Inherited functions

Link copied to clipboard
open fun div(divisor: Double): UnaryFunction
Creates a composite function h(x) such that h(x) = 1/k * f(x).
open fun div(divisor: UnaryFunction): UnaryFunction
Creates a composite function h(x) such that h(x) = f(x) / g(x).
Link copied to clipboard
open fun exp(exponent: Double): UnaryFunction
Creates a composite function h(x) such that h(x) = f(x) ^ k.
open fun exp(exponent: UnaryFunction): UnaryFunction
Creates a composite function h(x) such that h(x) = f(x) ^ g(x).
Link copied to clipboard
open fun mult(multiplier: Double): UnaryFunction
Creates a composite function h(x) such that h(x) = k * f(x).
open fun mult(multiplier: UnaryFunction): UnaryFunction
Creates a composite function h(x) such that h(x) = f(x) * g(x).
Link copied to clipboard
Constructs a new function that first calls this function, then passes the result to another as input.