AForge.Genetic.PermutationChromosome.CreateIndexDictionary C# (CSharp) 메소드

CreateIndexDictionary() 개인적인 정적인 메소드

private static CreateIndexDictionary ( ushort genes ) : ushort[]
genes ushort
리턴 ushort[]
        private static ushort[] CreateIndexDictionary( ushort[] genes )
        {
            ushort[] indexDictionary = new ushort[genes.Length];

            for ( int i = 0, n = genes.Length; i < n; i++ )
            {
                indexDictionary[genes[i]] = (ushort) i;
            }

            return indexDictionary;
        }
	}