Пример #1
0
 private Vec2i Individual_Placement(MEL__Individual individual)
 {
     return(new Vec2i(
                Individual_Placement_Index_X(individual),
                Individual_Placement_Index_Y(individual)
                ));
 }
Пример #2
0
        protected int Individual_Placement_Index_Y(MEL__Individual individual)
        {
            double feature_2_value = individual.feature_2;

            for (int i = 0; i < evaluation_settings.feature_2_subdivisions; i++)
            {
                if (feature_2_value < evaluation_settings.feature_2_value_ranges[i])
                {
                    return(i);
                }
            }

            return(evaluation_settings.feature_2_subdivisions - 1);
        }