std_dev::regression::spiral

Function three_variable_optimization

source
pub fn three_variable_optimization(
    fitness_function: impl Fn([f64; 3]) -> f64,
    options: Options,
) -> [f64; 3]
Available on crate feature regression only.
Expand description

Samples points on a spherical spiral in the phase space of all second degree polynomials. As θ (the angle) increases, the imaginary sphere’s size is increased. This gives a good distribution of sample points in 3d space.

See Options.

This function just optimizes three floats according to fitness_function. The returned value is the best match.