ribs.emitters.operators.GaussianOperator¶
- class ribs.emitters.operators.GaussianOperator(sigma, lower_bounds, upper_bounds, seed=None)[source]¶
Adds Gaussian noise to solutions.
- Parameters
sigma (float or array-like) – Standard deviation of the Gaussian distribution. Note we assume the Gaussian is diagonal, so if this argument is an array, it must be 1D.
lower_bounds (array-like) – Upper bounds of the solution space. Passed in by emitter
upper_bounds (array-like) – Upper bounds of the solution space. Passed in by emitter
seed (int) – Value to seed the random number generator. Set to None to avoid a fixed seed.
Methods
ask
(parents)Adds Gaussian noise to parents.
Attributes
Parent Type to be used by selector.