org.android.activityminer.logic.evaluation
Class PartitionCreator

Package class diagram package PartitionCreator
java.lang.Object
  extended by 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.


Constructor Summary
PartitionCreator()
           
 
Method Summary
static
<T> Set<Set<T>>
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
 

Constructor Detail

PartitionCreator

public PartitionCreator()
Method Detail

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 set
k - the count of equal sized subsets to create
Returns:
a set containing all the partitions subsets