[][src]Trait tdpsola::AlternatingWindow

pub trait AlternatingWindow {
    fn step(&mut self);
fn window_a(&self) -> f32;
fn window_b(&self) -> f32;
fn a_is_ending(&self) -> bool; }

Describes two alternating windows.

Required methods

fn step(&mut self)

Proceed one step.

fn window_a(&self) -> f32

Get the value of window a at the current step. By convention, this is something between 0.0 and 1.0.

fn window_b(&self) -> f32

Get the value of window b at the current step. By convention, this is something between 0.0 and 1.0.

fn a_is_ending(&self) -> bool

Indicates in which phase the windows are. If a_is_ending() is true, this means that window a is past its peak and is decreasing and that window b is increasing. If a_is_ending() returns true, this means that window_a is increasing and that window b is past its peak and is decreasing.

Loading content...

Implementors

impl AlternatingWindow for AlternatingHann[src]

impl AlternatingWindow for AlternatingHat[src]

Loading content...