AForge.Genetic.BinaryChromosome.CreateNew C# (CSharp) 메소드

CreateNew() 공개 메소드

Create new random chromosome with same parameters (factory method).

The method creates new chromosome of the same type, but randomly initialized. The method is useful as factory method for those classes, which work with chromosome's interface, but not with particular chromosome type.

public CreateNew ( ) : IChromosome
리턴 IChromosome
        public override IChromosome CreateNew( )
        {
            return new BinaryChromosome( length );
        }