TestFunction

Trait TestFunction 

Source
pub trait TestFunction: ObjectiveFunction {
    // Required methods
    fn global_minimum(&self) -> f64;
    fn global_minimum_position(&self) -> Array1<f64>;
    fn name(&self) -> &'static str;

    // Provided method
    fn test_3d_surface(
        &self,
        n_points: usize,
    ) -> (Array2<f64>, Array2<f64>, Array2<f64>) { ... }
}
Expand description

Common trait for test functions

Required Methods§

Source

fn global_minimum(&self) -> f64

Get the known global minimum value

Source

fn global_minimum_position(&self) -> Array1<f64>

Get the known global minimum position

Source

fn name(&self) -> &'static str

Get the name of the test function

Provided Methods§

Source

fn test_3d_surface( &self, n_points: usize, ) -> (Array2<f64>, Array2<f64>, Array2<f64>)

Implementors§