FFTErrorEstimate

Trait FFTErrorEstimate 

Source
pub trait FFTErrorEstimate {
    // Required method
    fn expected_absolute_error(&self, input_bound: f64, input_error: f64) -> f64;
}
Available on crate feature unstable-enable only.
Expand description

Trait for operations that perform float-point computations, and thus must care about precision. Currently only used for crate::algorithms::fft::FFTAlgorithm.

§Availability

This API is marked as unstable and is only available when the unstable-enable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Required Methods§

Source

fn expected_absolute_error(&self, input_bound: f64, input_error: f64) -> f64

This is only true if the table is created with the crate::rings::float_complex::Complex64-specific creator functions. Note that this is a worst-case estimate and likely to significantly overestimate the error.

This estimates the error from crate::algorithms::fft::FFTAlgorithm::unordered_fft(). The error during the inverse FFT is the same, but will be scaled by 1/n.

Implementors§