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
A function that cubes the input value.
Link copied to clipboard
A function that cubes the input value and keeps the sign.
Link copied to clipboard
The identity function that simply returns the input value.
Link copied to clipboard
A function that negates the input value.
Link copied to clipboard
A function that squares the input value.
Link copied to clipboard
A function that squares the input value and keeps the sign.

Functions

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

Inherited functions

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