Encog.ML.Genetic.MateWorker.Run C# (CSharp) Метод

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

Mate the two chromosomes.
public Run ( ) : void
Результат void
        public void Run()
        {
            _mother.Mate(_father, _child1, _child2);
        }

Usage Example

Пример #1
0
        private void ThreadWorker(int i, int offspringIndex, int matingPopulationSize)
        {
            IGenome mother    = Population.Genomes[i];
            var     fatherInt = (int)(ThreadSafeRandom.NextDouble() * matingPopulationSize);
            IGenome father    = Population.Genomes[fatherInt];
            IGenome child1    = Population.Genomes[offspringIndex + i * 2];
            IGenome child2    = Population.Genomes[offspringIndex + i * 2 + 1];

            var worker = new MateWorker(mother, father, child1,
                                        child2);

            worker.Run();
        }
All Usage Examples Of Encog.ML.Genetic.MateWorker::Run