[][src]Trait basic_dsp_vector::CrossCorrelationArgumentOps

pub trait CrossCorrelationArgumentOps<S, T>: ToFreqResult where
    S: ToSliceMut<T>,
    T: RealNumber
{ pub fn prepare_argument<B>(self, buffer: &mut B) -> Self::FreqResult
    where
        B: for<'a> Buffer<'a, S, T>
;
pub fn prepare_argument_padded<B>(self, buffer: &mut B) -> Self::FreqResult
    where
        B: for<'a> Buffer<'a, S, T>
; }

This trait allows to transform an argument so that it can be used for cross correlation. Refer to the description of CrossCorrelationOps for more details.

Required methods

pub fn prepare_argument<B>(self, buffer: &mut B) -> Self::FreqResult where
    B: for<'a> Buffer<'a, S, T>, 
[src]

Prepares an argument to be used for convolution. Preparing an argument includes two steps:

  1. Calculate the plain FFT
  2. Calculate the complex conjugate

pub fn prepare_argument_padded<B>(self, buffer: &mut B) -> Self::FreqResult where
    B: for<'a> Buffer<'a, S, T>, 
[src]

Prepares an argument to be used for convolution. The argument is zero padded to length of 2 * self.points() - 1 and then the same operations are performed as described for prepare_argument.

Loading content...

Implementors

impl<S, T, N, D> CrossCorrelationArgumentOps<S, T> for DspVec<S, T, N, D> where
    DspVec<S, T, N, D>: ToFreqResult + TimeToFrequencyDomainOperations<S, T>,
    <DspVec<S, T, N, D> as ToFreqResult>::FreqResult: FrequencyDomainOperations<S, T> + ComplexOps<T>,
    S: ToSliceMut<T>,
    T: RealNumber,
    N: ComplexNumberSpace,
    D: TimeDomain
[src]

Loading content...