Trait signalo_filters::traits::PhaseShift [] [src]

pub trait PhaseShift: Sized {
    fn phase_shift(&self) -> isize;
}

Trait for arbitrarily phase shifting systems.

Background:

Phase shift is any change that occurs in the phase of one quantity, or in the phase difference between two or more quantities.

This symbol: φ is sometimes referred to as a phase shift or phase offset because it represents a "shift" from zero phase.

For infinitely long sinusoids, a change in φ is the same as a shift in time, such as a time delay. If x(t) is delayed (time-shifted) by 1/4 of its cycle, it becomes:

x(t - 1/4 T) = A * cos(2π * f(t - 1/4 T) + φ)
             = A * cos(2π * f * t - π/2 + φ)

whose "phase" is now φ - π/2. It has been shifted by π/2 radians (the variable A here just represents the amplitude of the wave). Wikipedia

Required Methods

Returns the current phase shift of self.

Implementors