Documentation ¶
Overview ¶
Package mutation provides an interface for a mutation method and some implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGaussianMethod ¶ added in v1.1.2
func DefaultGaussianMethod(numPoints int) gaussianMethod
DefaultGaussianMethod returns a gaussianMethod which is optimal for almost all cases.
func NewGaussianMethod ¶
NewGaussianMethod returns a gaussianMethod with specified a mutation rate and amount.
func NewRandomMethod ¶
NewRandomMethod returns a randomMethod with specified a mutation rate and amount.
Types ¶
type Method ¶
type Method interface { // Mutate mutates a normgeom.NormPointGroup. // A function, mutated, is called when a point is mutated. Mutate(points normgeom.NormPointGroup, mutated func(mutation Mutation)) }
A Method is used to apply mutations on a point group.
Click to show internal directories.
Click to hide internal directories.