Class ListOrderedGrouping<C extends Comparable<C>>
java.lang.Object
org.uma.jmetal.util.grouping.impl.ListGrouping<C>
org.uma.jmetal.util.grouping.impl.ListOrderedGrouping<C>
- Type Parameters:
C-
- All Implemented Interfaces:
CollectionGrouping<List<C>>
Class that groups a list of
Comparable entities by ascending order. The number of
groups is a constructor parameter and the group size is computed by dividing the list size
by the number of groups. If the remainder of this division is not zero, the last group will
contain the remaining index values (so, its size would be higher than the size of the rest of
groups).- Author:
- Antonio J. Nebro
-
Field Summary
Fields inherited from class org.uma.jmetal.util.grouping.impl.ListGrouping
groups, indices, numberOfGroups -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.uma.jmetal.util.grouping.impl.ListGrouping
createGroups, group, numberOfGroups
-
Constructor Details
-
ListOrderedGrouping
public ListOrderedGrouping(int numberOfGroups)
-
-
Method Details
-
computeGroups
-