[][src]Module jeans::functions

This module provides access to fitness functions commonly used for optimization.

These make it very easy to start using jeans. For example, you can use one of these built-in functions to quickly modify the fitness function used:

let mut set = jeans::Settings::default();
set.set_fitness_function(jeans::functions::sphere);

Note that jeans::Settings::default() will use jeans::functions::summation by default.

Functions

sphere

This function sums the square of the elements of the vector

summation

This function simply sums the elements of the vector