Struct iq_osc::IQOsc [] [src]

pub struct IQOsc<T: Float> { /* fields omitted */ }

Quadrature oscillator with current phase Φ(t) and phase step ω.

Methods

impl<T: Float> IQOsc<T>
[src]

[src]

Create a new IQOsc starting at the given initial phase θ0 (in radians) and with the given phase step ω (in radians).

The first call to next() will then return (sin θ0, cos θ0).

[src]

Change the phase step to the given ω (in radians).

[src]

Change the current phase to the given θ (in radians).

[src]

Step the phase to Φ(t+1) and return (sin Φ(t), cos Φ(t)).

Trait Implementations

impl<T: Copy + Float> Copy for IQOsc<T>
[src]

impl<T: Clone + Float> Clone for IQOsc<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more