public class CollectionsRand extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> boolean |
isIndependent(Collection<E> collection1,
Collection<E> collection2) |
static <E> boolean |
isSubset(Collection<E> collection1,
Collection<E> collection2) |
static <E> List<Set<E>> |
randomSplit(Collection<E> set,
int numSplits) |
static <E> Set<E> |
randomSubset(Collection<E> collection,
double subsetPercentage) |
static <E> Set<E> |
randomSubset(Collection<E> collection,
int subsetSize) |
public static <E> boolean isIndependent(Collection<E> collection1, Collection<E> collection2)
public static <E> boolean isSubset(Collection<E> collection1, Collection<E> collection2)
public static <E> Set<E> randomSubset(Collection<E> collection, int subsetSize)
public static <E> Set<E> randomSubset(Collection<E> collection, double subsetPercentage)
public static <E> List<Set<E>> randomSplit(Collection<E> set, int numSplits)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.