Constructor and Description |
---|
VariateCollection(java.util.Collection<T> values)
Constructs a finite-set random variate.
|
VariateCollection(T[] values)
Constructs a finite-set random variate.
|
Modifier and Type | Method and Description |
---|---|
T |
value()
Returns a value (instance) of the random variate.
|
public VariateCollection(T[] values)
values
- the value area of the random variate.java.lang.IllegalArgumentException
- if values == null
;
if values
is empty.public VariateCollection(java.util.Collection<T> values)
values
- the value area of the random variate.java.lang.IllegalArgumentException
- if values == null
;
if values
is empty.