Struct idsp::Lowpass[][src]

pub struct Lowpass<const N: usize> { /* fields omitted */ }
Expand description

Arbitrary order, high dynamic range, wide coefficient range, lowpass filter implementation. DC gain is 1.

Type argument N is the filter order.

Implementations

Update the filter with a new sample.

Args

  • x: Input data. Needs 1 bit headroom but will saturate cleanly beyond that.
  • k: Log2 time constant, 1..=31.

Return

Filtered output y.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.