[][src]Trait basic_dsp::CrossCorrelationOps

pub trait CrossCorrelationOps<A, S, T, N, D> where
    A: GetMetaData<T, N, D>,
    D: Domain,
    N: NumberSpace,
    S: ToSliceMut<T>,
    T: RealNumber
{ fn correlate<B>(
        &mut self,
        buffer: &mut B,
        other: &A
    ) -> Result<(), ErrorReason>
    where
        B: Buffer<'a, S, T>
; }

A trait to calculate the cross correlation.

Required methods

fn correlate<B>(&mut self, buffer: &mut B, other: &A) -> Result<(), ErrorReason> where
    B: Buffer<'a, S, T>, 

Calculates the correlation between self and other. other needs to be a time vector which went through one of the prepare functions prepare_argument or prepare_argument_padded. See also the trait description for more details.

Loading content...

Implementors

impl<S, T, N, D, DF, O, NO> CrossCorrelationOps<O, S, T, NO, DF> for DspVec<S, T, N, D> where
    D: TimeDomain,
    DF: FrequencyDomain,
    N: ComplexNumberSpace,
    NO: PosEq<N> + NumberSpace,
    O: Vector<T> + GetMetaData<T, NO, DF> + Index<RangeFull, Output = [T]>,
    S: ToSliceMut<T>,
    T: RealNumber,
    DspVec<S, T, N, D>: ScaleOps<T>, 
[src]

impl<S, T, N, D, O, V> CrossCorrelationOps<O, S, T, N, D> for Matrix2xN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSliceMut<T>,
    T: RealNumber,
    V: CrossCorrelationOps<V, S, T, N, D> + GetMetaData<T, N, D> + Vector<T>, 
[src]

impl<S, T, N, D, O, V> CrossCorrelationOps<O, S, T, N, D> for Matrix3xN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSliceMut<T>,
    T: RealNumber,
    V: CrossCorrelationOps<V, S, T, N, D> + GetMetaData<T, N, D> + Vector<T>, 
[src]

impl<S, T, N, D, O, V> CrossCorrelationOps<O, S, T, N, D> for Matrix4xN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSliceMut<T>,
    T: RealNumber,
    V: CrossCorrelationOps<V, S, T, N, D> + GetMetaData<T, N, D> + Vector<T>, 
[src]

impl<S, T, N, D, O, V> CrossCorrelationOps<O, S, T, N, D> for MatrixMxN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSliceMut<T>,
    T: RealNumber,
    V: CrossCorrelationOps<V, S, T, N, D> + GetMetaData<T, N, D> + Vector<T>, 
[src]

Loading content...