E
- public class FractionPartition<E> extends Object implements PartitionAlgorithm<E>
Constructor and Description |
---|
FractionPartition(double f)
The fraction to hold out (put in the second partition).
|
Modifier and Type | Method and Description |
---|---|
int |
partition(List<E> data)
Compute a partition of some data.
|
public FractionPartition(double f)
f
- The fraction of users to hold out.public int partition(List<E> data)
PartitionAlgorithm
partition
in interface PartitionAlgorithm<E>
data
- The data to partition.