geva

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDemes

func MakeDemes(demeCount int, members []pop.Individual,
	s []pop.SMethod, pair []pop.PMethod,
	in, out [][]float64, tests, goal int, elites intrange.Range, migration float64) pop.DemeGroup

func MatrixMultiply

func MatrixMultiply(a []float64, b []float64) []float64

matrices are assumed to be square

func PowSum

func PowSum(max, pow float64) float64

func ReverseList

func ReverseList(lst []float64) []float64

func RunDemeGroup

func RunDemeGroup(dg pop.DemeGroup, numGens int) pop.Individual

func RunSingleSuite

func RunSingleSuite(s TestSuite, writer *csv.Writer)

func RunSuite

func RunSuite(testCases []TestCase, demeCount, popSize, testGenerations int, options interface{},
	suiteFunc SuiteFunc, selection []pop.SMethod,
	pairing []pop.PMethod, goal int, elites intrange.Range, migration float64, titleSuffix string)

func RunTestSuites

func RunTestSuites(suites []TestSuite)

func Seed

func Seed()

func SilentRunDemeGroup

func SilentRunDemeGroup(dg pop.DemeGroup, numGens int) pop.Individual

func SuiteWriter

func SuiteWriter() *csv.Writer

Types

type SuiteFunc

type SuiteFunc func(interface{}, int) []pop.Individual

type SuiteInitFunc

type SuiteInitFunc func(interface{})

type TestCase

type TestCase struct {
	// contains filtered or unexported fields
}

func MultiplyMatrixTestCase

func MultiplyMatrixTestCase() TestCase

func Pow8TestCase

func Pow8TestCase() TestCase

func PowSumTestCase

func PowSumTestCase() TestCase

func ReverseListTestCase

func ReverseListTestCase() TestCase

func SortListTestCase

func SortListTestCase() TestCase

func TransposeMatrixTestCase

func TransposeMatrixTestCase() TestCase

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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