function

package
v0.0.0-...-8e0f694 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crossover

func Crossover() genetic.CrossoverFunc

func Main

func Main()

func Random

func Random(f Function) genetic.RandomFunc

func ScorePow

func ScorePow(baseInput, targetOutput []float64, inputFactor, pow float64) genetic.ScoreFunc

func Variant

func Variant(step float64) genetic.VariantFunc

Types

type Function

type Function func([]float64) []float64

type Input

type Input struct {
	Value []float64
	Func  Function
}

func (Input) Copy

func (i Input) Copy() genetic.Single

func (Input) Equal

func (i Input) Equal(o genetic.Single) bool

func (Input) Output

func (i Input) Output() []float64

Jump to

Keyboard shortcuts

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