functions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Overview

Package functions provides a map of available functions for the GEP algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncMap

type FuncMap map[string]FuncNode

FuncMap is a map from the symbol name of a function to its defining FuncNode.

type FuncNode

type FuncNode interface {
	// Symbol is the Karva string representation of the function.
	Symbol() string
	// Terminals is the number of input terminals for the function.
	Terminals() int
	// BoolFunction represents a general boolean function.
	BoolFunction(a, b, c, d bool) bool
	// Float64Function represents a general floating-point function.
	Float64Function(a, b, c, d float64) float64
}

FuncNode defines an available function for the GEP algorithm.

Directories

Path Synopsis
Package boolNodes defines the Boolean function collections available for the GEP algorithm.
Package boolNodes defines the Boolean function collections available for the GEP algorithm.
Package mathNodes defines the floating-point function collection available for the GEP algorithm.
Package mathNodes defines the floating-point function collection available for the GEP algorithm.

Jump to

Keyboard shortcuts

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