Versions in this module Expand all Collapse all v0 v0.1.1 Jun 2, 2019 v0.1.0 May 31, 2019 Changes in this version + var ErrInvalidMutationCount = errors.New("mutation count must be in the [0,MaxInt32] range") + var ErrInvalidMutationProb = errors.New("mutation probability must be in the [0,1] range") + func NewString(alphabet string) *stringMutater + type Bitstring struct + func NewBitstring() *Bitstring + func (op *Bitstring) Mutate(c interface{}, rng *rand.Rand) interface{} + func (op *Bitstring) SetMutations(nmut int) error + func (op *Bitstring) SetMutationsRange(min, max int) error + type Mutater interface + Mutate func(interface{}, *rand.Rand) interface{} + type Mutation struct + func New(mut Mutater) *Mutation + func (op *Mutation) Apply(sel []interface{}, rng *rand.Rand) []interface{} + func (op *Mutation) SetProb(prob float64) error + func (op *Mutation) SetProbRange(min, max float64) error