Documentation
¶
Overview ¶
Package algorithm implements optimization algorithms to triangulate an image
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algorithm ¶
type Algorithm interface {
// Step runs one generation of the algorithm.
Step()
// Best returns the point group with the highest fitness.
Best() normgeom.NormPointGroup
// Stats returns statistics relating to the algorithm.
Stats() Stats
}
An Algorithm is an iterative algorithm for optimizing a group of points.
type FitnessData ¶
FitnessData stores the fitness of a point group.
type MutationsData ¶
type MutationsData struct {
Mutations []mutation.Mutation
Indexes []int // The index of the member where the mutation came from. Indexes[i] has the mutation Mutations[i].
}
MutationsData stores a set of mutations and the index of the member which each mutation came from.
func (*MutationsData) Clear ¶
func (m *MutationsData) Clear()
Clear clears all data from the struct.
func (MutationsData) Count ¶
func (m MutationsData) Count() int
Count returns the number of mutations stored.
Click to show internal directories.
Click to hide internal directories.