Package adams.data.binning.operation
Class Randomize
- java.lang.Object
-
- adams.data.binning.operation.Randomize
-
public class Randomize extends Object
For randomizing bins/binnable lists.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description Randomize()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<Bin<T>>
randomizeBins(List<Bin<T>> bins, long seed)
Randomizes the data in the bins in-place.static <T> List<Bin<T>>
randomizeBins(List<Bin<T>> bins, Random random)
Randomizes the data in the bins in-place.static <T> List<Binnable<T>>
randomizeData(List<Binnable<T>> data, long seed)
Randomizes the binnable data in-place.static <T> List<Binnable<T>>
randomizeData(List<Binnable<T>> data, Random random)
Randomizes the binnable data in-place.
-
-
-
Method Detail
-
randomizeData
public static <T> List<Binnable<T>> randomizeData(List<Binnable<T>> data, long seed)
Randomizes the binnable data in-place.- Type Parameters:
T
- the type of payload- Parameters:
data
- the data to randomizeseed
- the seed to use- Returns:
- returns randomized input
-
randomizeData
public static <T> List<Binnable<T>> randomizeData(List<Binnable<T>> data, Random random)
Randomizes the binnable data in-place.- Type Parameters:
T
- the type of payload- Parameters:
data
- the data to randomizerandom
- the random number generator to use- Returns:
- returns randomized input
-
randomizeBins
public static <T> List<Bin<T>> randomizeBins(List<Bin<T>> bins, long seed)
Randomizes the data in the bins in-place.- Type Parameters:
T
- the type of payload- Parameters:
bins
- the bins to randomizeseed
- the seed to use- Returns:
- returns randomized input
-
-