A Function represents a fitness function to evaluate a point group.
| 9 | |
| 10 | // A Function represents a fitness function to evaluate a point group. |
| 11 | type 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. |
| 17 | type PointsData struct { |
no outgoing calls
no test coverage detected