Trait ErrorEstimator

Source
pub trait ErrorEstimator:
    Send
    + Sync
    + Debug {
    // Required methods
    fn estimate_error(
        &self,
        result: &AdaptiveResult,
        reference: Option<&AdaptiveResult>,
    ) -> f64;
    fn name(&self) -> &str;
    fn is_applicable(&self, computation_type: ComputationType) -> bool;
}
Expand description

Trait for error estimation methods

Required Methods§

Source

fn estimate_error( &self, result: &AdaptiveResult, reference: Option<&AdaptiveResult>, ) -> f64

Estimate the numerical error in a computation

Source

fn name(&self) -> &str

Get the name of this error estimator

Source

fn is_applicable(&self, computation_type: ComputationType) -> bool

Check if this estimator is applicable to the given computation

Implementors§