Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefGraph is the starting point for // all NewGraph calls prior to options // being applied. DefGraph = &Graph{ nodes: []Node{}, MinDistance: 1, } )
Functions ¶
This section is empty.
Types ¶
type EnvInd ¶
EnvInd is a wrapper around a float env that can be a member of a population
func (*EnvInd) CanCrossover ¶
func (ei *EnvInd) CanCrossover(other pop.Individual) bool
CanCrossover always returns false for a EnvInd
func (*EnvInd) Crossover ¶
func (ei *EnvInd) Crossover(other pop.Individual) pop.Individual
type Graph ¶
type Graph struct { MinDistance float64 // contains filtered or unexported fields }
A Graph represents a set of nodes which are sufficiently unique from one-another.
func NewGraph ¶
NewGraph returns a graph starting with default options (see DefGraph) and modified by the input options.
type Node ¶
type Node interface { // Distance reports the distance from this // node to another, along with whether the // comparison is a valid comparison-- if not, // the distance is meaningless. Distance(Node) (float64, bool) }
A Node can determine how closely related other nodes are to itself
type Render ¶
type Render struct { *Graph *render.CompositeR }
type RenderNode ¶
type RenderNode interface { Node GetR() render.Renderable }
A RenderNode can act as a Node and a screen Renderable
Click to show internal directories.
Click to hide internal directories.