Trait basic_dsp::RealInterpolation
[−]
[src]
pub trait RealInterpolation<T>: DataVector<T> where T: RealNumber { fn interpolate_hermite(self, interpolation_factor: T, delay: T) -> VecResult<Self>; fn interpolate_lin(self, interpolation_factor: T, delay: T) -> VecResult<Self>; }
Provides interpolation operations which are only applicable for real data vectors.
Failures
All operations in this trait fail with VectorMustBeReal
if the vector isn't in the real number space.
Required Methods
fn interpolate_hermite(self, interpolation_factor: T, delay: T) -> VecResult<Self>
Piecewise cubic hermite interpolation between samples.
Unstable
Algorithm might need to be revised.
This operation and interpolate_lin
might be merged into one function with an additional argument in future.
fn interpolate_lin(self, interpolation_factor: T, delay: T) -> VecResult<Self>
Linear interpolation between samples.
Unstable
This operation and interpolate_hermite
might be merged into one function with an additional argument in future.
Implementors
impl RealInterpolation<f32> for GenericDataVector<f32>
impl RealInterpolation<f64> for GenericDataVector<f64>
impl RealInterpolation<f32> for RealTimeVector<f32>
impl RealInterpolation<f64> for RealTimeVector<f64>
impl RealInterpolation<f32> for RealFreqVector<f32>
impl RealInterpolation<f64> for RealFreqVector<f64>