Skip to main content

SensitivityAnalyzer

Trait SensitivityAnalyzer 

Source
pub trait SensitivityAnalyzer<F: Float> {
    // Required method
    fn analyze(
        &mut self,
        model: &dyn Fn(&Array1<F>) -> F,
        bounds: &[(F, F)],
    ) -> Result<SensitivityIndices<F>>;
}
Expand description

Trait implemented by all sensitivity-analysis algorithms in this module.

Implementors evaluate model at a number of sample points within the rectangular domain defined by bounds and return a populated SensitivityIndices structure.

Required Methods§

Source

fn analyze( &mut self, model: &dyn Fn(&Array1<F>) -> F, bounds: &[(F, F)], ) -> Result<SensitivityIndices<F>>

Analyze the sensitivity of model over the rectangular domain specified by bounds.

bounds[i] is the (min, max) range for parameter i.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§