A PopulationCollection implementation which is based on the List object.
PopulationList
Type Parameters
| Name | Description |
|---|---|
Chr | The chromosome type of the genetic algorithm. |
01 Syntax
Microsoft.VisualBasic.MachineLearning.Darwinism.GAF.Population.PopulationList`1
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Add | 1 | Add a chromosome object into this list. |
| Trim | 1 | Keep only the first capacitySize chromosome objects of this list. |
| GetCollection | 1 | Get all of the chromosome objects in this list. |
| OrderBy | 1 | Order by [unique_hashKey => fitness] |
03 Properties
04 Members
Add(
`0)Add a chromosome object into this list.
Parameters
| Name | Type | Description |
|---|---|---|
chr | `0 | The chromosome object that will be added. |
Trim(
Int32)Keep only the first capacitySize chromosome objects of this list.
Parameters
| Name | Type | Description |
|---|---|---|
capacitySize | Int32 | The maximum number of the chromosomes which will be kept. |
GetCollection
Get all of the chromosome objects in this list.
Returns
A sequence of the chromosome objects.
OrderBy(
Func(Of String, Double))Order by [unique_hashKey => fitness]
Parameters
| Name | Type | Description |
|---|---|---|
fitness | Func(Of String, Double) | The fitness value provider function, its parameter is the |
Count
The number of the chromosome objects in this list.
Returns
An Int32 value.
Item(
Int32)Gets the chromosome object at the specific index of this list.
Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero based index of the target chromosome. |
Returns
A chromosome object.