Package park :: Package optim :: Module fitutil

Module fitutil

source code

Helper functions for fitting.
Functions
 
populate(size, pars, radius=100, elitism=True)
Generate a population within a parameter space.
source code
Function Details

populate(size, pars, radius=100, elitism=True)

source code 

Generate a population within a parameter space.

The population will be centered on the initial value, with the given radius. Radius is a percentage of the total space, or a percentage of the initial value if the space is unbounded. If radius is given as a vector, the radius is the length of the selection box in each dimension of the problem space. This is clipped to the bounds of the problem.

Note that the term radius is a bit misleading since the volume used is rectilinear rather than ellipsoidal, but it captures the notion of whether values should be clustered tightly in the available search space, or ranged broadly.