Class Offspring<TIndividual>
- Namespace
- Evolutionary
- Assembly
- Evolutionary.dll
The offspring class.
public class Offspring<TIndividual>
Type Parameters
TIndividualThe individuals type.
- Inheritance
-
Offspring<TIndividual>
- Inherited Members
- Extension Methods
Constructors
Offspring(Population<TIndividual>, Random, IEnumerable<TIndividual>, IEnumerable<TIndividual>)
Creates a new offspring.
public Offspring(Population<TIndividual> parentPopulation, Random random, IEnumerable<TIndividual> randomParents, IEnumerable<TIndividual> children)
Parameters
parentPopulationPopulation<TIndividual>The parent population.
randomRandomThe random generator that is used by the operators.
randomParentsIEnumerable<TIndividual>A never ending random enumeration over the parents.
childrenIEnumerable<TIndividual>The children.
Properties
Children
The list of children of the generation.
public IEnumerable<TIndividual> Children { get; }
Property Value
- IEnumerable<TIndividual>
ParentPopulation
The parent population.
public Population<TIndividual> ParentPopulation { get; }
Property Value
- Population<TIndividual>
Random
Gets the random number generator that is used by the operators.
public Random Random { get; }
Property Value
RandomParents
A never ending enumeration of a random selection of the parents.
public IEnumerable<TIndividual> RandomParents { get; }
Property Value
- IEnumerable<TIndividual>