AForge.Genetic.Population.Resize C# (CSharp) Метод

Resize() публичный Метод

Resize population to the new specified size.

The method does resizing of population. In the case if population should grow, it just adds missing number of random members. In the case if population should get smaller, the population's selection method is used to reduce the population.

Too small population's size was specified. The /// exception is thrown in the case if is smaller than 2.
public Resize ( int newPopulationSize ) : void
newPopulationSize int New size of population.
Результат void
        public void Resize( int newPopulationSize )
        {
            Resize( newPopulationSize, selectionMethod );
        }

Same methods

Population::Resize ( int newPopulationSize, ISelectionMethod membersSelector ) : void