T
- the type of the random variate values.public final class VariateComposite<T> extends java.lang.Object implements Variate<T>
T
-type random variate.Constructor and Description |
---|
VariateComposite(java.util.Collection<Variate<T>> variates)
Constructs a composite random variate.
|
VariateComposite(java.util.List<Variate<T>> variates,
java.util.List<java.lang.Integer> biases)
Constructs a composite random variate.
|
VariateComposite(Variate<T>[] variates)
Constructs a composite random variate.
|
VariateComposite(Variate<T>[] variates,
int[] biases)
Constructs a composite random variate.
|
public VariateComposite(Variate<T>[] variates, int[] biases)
variates
- the random variates to be composed.biases
- the biases of the random variates.java.lang.IllegalArgumentException
- if variates == null
or biases == null
;
if the variates
and biases
arrays have different sizes
or they are empty or the biases
array contains negative numbers.public VariateComposite(java.util.List<Variate<T>> variates, java.util.List<java.lang.Integer> biases)
variates
- the random variates to be composed.biases
- the biases of the random variates.java.lang.IllegalArgumentException
- if variates == null
or biases == null
;
if the variates
and biases
arrays have different sizes
or they are empty or the biases
array contains negative numbers.public VariateComposite(Variate<T>[] variates)
variates
- the random variates to be composed.java.lang.IllegalArgumentException
- if variates == null
;
if variates
is empty.