C# Class Encog.Solve.Genetic.Population.BasicPopulation

Inheritance: Encog.Persist.BasicPersistedObject, IPopulation
显示文件 Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Add ( IGenome genome ) : void

Add a genome to the population.

AddAll ( IList newPop ) : void

Add all of the specified members to this population.

AssignGeneID ( ) : long

Assign a gene id.

AssignGenomeID ( ) : long

Assign a genome id.

AssignInnovationID ( ) : long

Assign an innovation id.

AssignSpeciesID ( ) : long

Assign a species id.

BasicPopulation ( int populationSize ) : System

Construct a population.

Clear ( ) : void

Clear all genomes from this population.

Clone ( ) : object

Clone is not supported for this object type, an error will be thrown.

CreatePersistor ( ) : IPersistor

Create a persistor.

GetBest ( ) : IGenome

The best genome in the population.

Sort ( ) : void

Sort the population.

Method Details

Add() public method

Add a genome to the population.
public Add ( IGenome genome ) : void
genome IGenome The genome to add.
return void

AddAll() public method

Add all of the specified members to this population.
public AddAll ( IList newPop ) : void
newPop IList A list of new genomes to add.
return void

AssignGeneID() public method

Assign a gene id.
public AssignGeneID ( ) : long
return long

AssignGenomeID() public method

Assign a genome id.
public AssignGenomeID ( ) : long
return long

AssignInnovationID() public method

Assign an innovation id.
public AssignInnovationID ( ) : long
return long

AssignSpeciesID() public method

Assign a species id.
public AssignSpeciesID ( ) : long
return long

BasicPopulation() public method

Construct a population.
public BasicPopulation ( int populationSize ) : System
populationSize int The population size.
return System

Clear() public method

Clear all genomes from this population.
public Clear ( ) : void
return void

Clone() public method

Clone is not supported for this object type, an error will be thrown.
public Clone ( ) : object
return object

CreatePersistor() public method

Create a persistor.
public CreatePersistor ( ) : IPersistor
return IPersistor

GetBest() public method

The best genome in the population.
public GetBest ( ) : IGenome
return IGenome

Sort() public method

Sort the population.
public Sort ( ) : void
return void