mut

package
v0.0.0-...-b9e61c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FloatMutator

type FloatMutator func(float64) float64

A FloatMutator is expected to manipulate float64s. Exactly how they do that is up to the individual function.

func Add

func Add(a float64) FloatMutator

Add combines a and f through addition

func And

func And(a, b FloatMutator) FloatMutator

And performs two float mutations in order

func Div

func Div(d float64) FloatMutator

Div divides the input float by d

func DropOut

func DropOut(setTo float64) FloatMutator

DropOut resets a float to some default

func LinearRange

func LinearRange(rnge float64) FloatMutator

LinearRange mutates a float to be somewhere between f - range and f + range, linearly

func None

func None() FloatMutator

None performs no mutation on f

func Or

func Or(a, b FloatMutator, aChance float64) FloatMutator

Or will perform a at chance aChance, and otherwise will perform b.

func Scale

func Scale(s float64) FloatMutator

Scale scales the input float by s

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL