MCPcopy
hub / github.com/rh12503/triangula / Function

Interface Function

fitness/function.go:11–14  ·  view source on GitHub ↗

A Function represents a fitness function to evaluate a point group.

Source from the content-addressed store, hash-verified

9
10// A Function represents a fitness function to evaluate a point group.
11type Function interface {
12 // Calculate evaluates a point group and returns a fitness.
13 Calculate(data PointsData) float64
14}
15
16// PointsData stores data regarding a point group, and is used by the fitness function.
17type PointsData struct {

Callers 4

calculateFitnessesMethod · 0.65
calculateFitnessesMethod · 0.65
combineMutationsMethod · 0.65

Implementers 2

trianglesImageFunctionfitness/triangles.go
polygonsImageFunctionfitness/polygons.go

Calls

no outgoing calls

Tested by

no test coverage detected