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§
Sourcefn estimate_error(
&self,
result: &AdaptiveResult,
reference: Option<&AdaptiveResult>,
) -> f64
fn estimate_error( &self, result: &AdaptiveResult, reference: Option<&AdaptiveResult>, ) -> f64
Estimate the numerical error in a computation
Sourcefn is_applicable(&self, computation_type: ComputationType) -> bool
fn is_applicable(&self, computation_type: ComputationType) -> bool
Check if this estimator is applicable to the given computation