Result structure contains generation process statistics, as well as the best resulted population item.
| 50 | // Result structure contains generation process statistics, as well as the |
| 51 | // best resulted population item. |
| 52 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected