[−][src]Trait basic_dsp::SymmetricTimeToFrequencyDomainOperations
Defines all operations which are valid on DataVecs
containing real time domain data.
Failures
All operations in this trait set self.len()
to 0
if the vector isn't in time domain or
with VectorMustHaveAnOddLength
if self.points()
isn't and odd number.
Required methods
fn plain_sfft<B>(
self,
buffer: &mut B
) -> Result<Self::FreqResult, (ErrorReason, Self::FreqResult)> where
B: Buffer<'a, S, T>,
self,
buffer: &mut B
) -> Result<Self::FreqResult, (ErrorReason, Self::FreqResult)> where
B: Buffer<'a, S, T>,
Performs a Symmetric Fast Fourier Transformation under the assumption that self
is symmetric around the center. This assumption
isn't verified and no error is raised if the vector isn't symmetric.
This version of the IFFT neither applies a window nor does it scale the vector.
Failures
TransRes may report the following ErrorReason
members:
VectorMustBeReal
: ifself
is in complex number space.VectorMustBeInTimeDomain
: ifself
is in frequency domain.
fn sfft<B>(
self,
buffer: &mut B
) -> Result<Self::FreqResult, (ErrorReason, Self::FreqResult)> where
B: Buffer<'a, S, T>,
self,
buffer: &mut B
) -> Result<Self::FreqResult, (ErrorReason, Self::FreqResult)> where
B: Buffer<'a, S, T>,
Performs a Symmetric Fast Fourier Transformation under the assumption that self
is symmetric around the center. This assumption
isn't verified and no error is raised if the vector isn't symmetric.
Failures
TransRes may report the following ErrorReason
members:
VectorMustBeReal
: ifself
is in complex number space.VectorMustBeInTimeDomain
: ifself
is in frequency domain.
fn windowed_sfft<B>(
self,
buffer: &mut B,
window: &dyn WindowFunction<T>
) -> Result<Self::FreqResult, (ErrorReason, Self::FreqResult)> where
B: Buffer<'a, S, T>,
self,
buffer: &mut B,
window: &dyn WindowFunction<T>
) -> Result<Self::FreqResult, (ErrorReason, Self::FreqResult)> where
B: Buffer<'a, S, T>,
Performs a Symmetric Fast Fourier Transformation under the assumption that self
is symmetric around the center. This assumption
isn't verified and no error is raised if the vector isn't symmetric.
Failures
TransRes may report the following ErrorReason
members:
VectorMustBeReal
: ifself
is in complex number space.VectorMustBeInTimeDomain
: ifself
is in frequency domain.
Implementors
impl<S, T, N, D> SymmetricTimeToFrequencyDomainOperations<S, T> for DspVec<S, T, N, D> where
D: TimeDomain,
N: RealNumberSpace,
S: ToSliceMut<T>,
T: RealNumber,
DspVec<S, T, N, D>: ToFreqResult,
<DspVec<S, T, N, D> as ToFreqResult>::FreqResult: RededicateForceOps<DspVec<S, T, N, D>>,
<DspVec<S, T, N, D> as ToFreqResult>::FreqResult: FrequencyDomainOperations<S, T>,
<DspVec<S, T, N, D> as ToFreqResult>::FreqResult: ResizeOps,
[src]
impl<S, T, N, D> SymmetricTimeToFrequencyDomainOperations<S, T> for DspVec<S, T, N, D> where
D: TimeDomain,
N: RealNumberSpace,
S: ToSliceMut<T>,
T: RealNumber,
DspVec<S, T, N, D>: ToFreqResult,
<DspVec<S, T, N, D> as ToFreqResult>::FreqResult: RededicateForceOps<DspVec<S, T, N, D>>,
<DspVec<S, T, N, D> as ToFreqResult>::FreqResult: FrequencyDomainOperations<S, T>,
<DspVec<S, T, N, D> as ToFreqResult>::FreqResult: ResizeOps,
fn plain_sfft<B>( | [src] |
fn sfft<B>( | [src] |
fn windowed_sfft<B>( | [src] |
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for Matrix2xN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
[src]
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for Matrix2xN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
fn plain_sfft<B>( | [src] |
fn sfft<B>( | [src] |
fn windowed_sfft<B>( | [src] |
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for Matrix3xN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
[src]
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for Matrix3xN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
fn plain_sfft<B>( | [src] |
fn sfft<B>( | [src] |
fn windowed_sfft<B>( | [src] |
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for Matrix4xN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
[src]
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for Matrix4xN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
fn plain_sfft<B>( | [src] |
fn sfft<B>( | [src] |
fn windowed_sfft<B>( | [src] |
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for MatrixMxN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
[src]
impl<V, S, T> SymmetricTimeToFrequencyDomainOperations<S, T> for MatrixMxN<V, S, T> where
S: ToSliceMut<T>,
T: RealNumber,
V: Vector<T> + SymmetricTimeToFrequencyDomainOperations<S, T>,
<V as ToFreqResult>::FreqResult: Vector<T>,
fn plain_sfft<B>( | [src] |
fn sfft<B>( | [src] |
fn windowed_sfft<B>( | [src] |