org.android.activityminer.logic.evaluation
Class PartitionCreator
java.lang.Object
org.android.activityminer.logic.evaluation.PartitionCreator
public final class PartitionCreator
- extends Object
Does implement an algorithm for the creation of an partition for a set with k
nearly equal sized subsets.
It is used to split the sample set for a k-fold cross validation.
Method Summary |
static
|
createPartition(List<T> elements,
int k)
Does create a partition with k equal-sized subsets from the sample set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionCreator
public PartitionCreator()
createPartition
public static final <T> Set<Set<T>> createPartition(List<T> elements,
int k)
- Does create a partition with k equal-sized subsets from the sample set.
- Type Parameters:
T
- the concrete sample type- Parameters:
elements
- the original setk
- the count of equal sized subsets to create
- Returns:
- a set containing all the partitions subsets