MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / PopulationItem

Struct PopulationItem

strings/genetic/genetic.go:26–29  ·  view source on GitHub ↗

Population item represent a single step in the evolution process. One can think of population item as a single species. Key stands for the actual data entity of the species, which is a string in current implementation. Key can be interpreted as species DNA. Value shows how close this species to the

Source from the content-addressed store, hash-verified

24// **Note** In the current implementation species DNA length is suppose to be
25// equal to the target length for algorithm to work.
26type PopulationItem struct {
27 Key string
28 Value float64
29}
30
31// Conf stands for configurations set provided to GeneticString function.
32type Conf struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected