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

Struct Result

strings/genetic/genetic.go:52–61  ·  view source on GitHub ↗

Result structure contains generation process statistics, as well as the best resulted population item.

Source from the content-addressed store, hash-verified

50// Result structure contains generation process statistics, as well as the
51// best resulted population item.
52type Result struct {
53 // Number of generations steps performed.
54 Generation int
55
56 // Number of generated population items.
57 Analyzed int
58
59 // Result of generation with the best Value.
60 Best PopulationItem
61}
62
63// GeneticString generates PopulationItem based on the imputed target
64// string, and a set of possible runes to build a string with. In order

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected