Documentation ¶
Index ¶
- type FloatMutator
- func Add(a float64) FloatMutator
- func And(a, b FloatMutator) FloatMutator
- func Div(d float64) FloatMutator
- func DropOut(setTo float64) FloatMutator
- func LinearRange(rnge float64) FloatMutator
- func None() FloatMutator
- func Or(a, b FloatMutator, aChance float64) FloatMutator
- func Scale(s float64) FloatMutator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatMutator ¶
A FloatMutator is expected to manipulate float64s. Exactly how they do that is up to the individual function.
func LinearRange ¶
func LinearRange(rnge float64) FloatMutator
LinearRange mutates a float to be somewhere between f - range and f + range, linearly
func Or ¶
func Or(a, b FloatMutator, aChance float64) FloatMutator
Or will perform a at chance aChance, and otherwise will perform b.
Click to show internal directories.
Click to hide internal directories.