T
- the type of the random variate values.public final class VariateCollection<T> extends java.lang.Object implements Variate<T>
T
-type random variate.Constructor and Description |
---|
VariateCollection(java.util.Collection<T> values)
Constructs a finite-set random variate.
|
VariateCollection(T[] values)
Constructs a finite-set random variate.
|
public VariateCollection(T[] values)
values
- the value area of the random variate.java.lang.NullPointerException
- if values == null
.java.lang.IllegalArgumentException
- if values
is empty.public VariateCollection(java.util.Collection<T> values)
values
- the value area of the random variate.java.lang.NullPointerException
- if values == null
.java.lang.IllegalArgumentException
- if values
is empty.