C# Class Encog.Solve.Genetic.Species.BasicSpecies

A basic Encog species.
Inheritance: ISpecies
显示文件 Open project: encog/encog-silverlight-core

Public Methods

Method Description
BasicSpecies ( IPopulation population, IGenome first, long speciesID ) : System

Construct a species.

CalculateSpawnAmount ( ) : void

Calculate the amount to spawn.

ChooseParent ( ) : IGenome

Choose a parent to mate. Choose from the population, determined by the survival rate. From this pool, a random parent is chosen.

Purge ( ) : void

Purge all members, increase age by one and count the number of generations with no improvement.

Method Details

BasicSpecies() public method

Construct a species.
public BasicSpecies ( IPopulation population, IGenome first, long speciesID ) : System
population IPopulation The population.
first IGenome The first genome.
speciesID long The species id.
return System

CalculateSpawnAmount() public method

Calculate the amount to spawn.
public CalculateSpawnAmount ( ) : void
return void

ChooseParent() public method

Choose a parent to mate. Choose from the population, determined by the survival rate. From this pool, a random parent is chosen.
public ChooseParent ( ) : IGenome
return IGenome

Purge() public method

Purge all members, increase age by one and count the number of generations with no improvement.
public Purge ( ) : void
return void