DataType
- Type of data that can be sampled from the Distribution.public abstract class AbstractRandomVariable<DataType> extends AbstractRing<RandomVariable<DataType>> implements RandomVariable<DataType>, Randomized
Constructor and Description |
---|
AbstractRandomVariable() |
Modifier and Type | Method and Description |
---|---|
DataType |
sample(java.util.Random random)
Draws a single random sample from the distribution.
|
clone, dotTimes, isZero, minus, negative, negativeEquals, plus, scale, scaledMinus, scaledMinusEquals, scaledPlus, zero
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sample, sampleInto
clone, dotTimes, dotTimesEquals, equals, equals, isZero, isZero, minus, minusEquals, negative, negativeEquals, plus, plusEquals, scale, scaledMinus, scaledMinusEquals, scaledPlus, scaledPlusEquals, scaleEquals, zero
getRandom, setRandom
public DataType sample(java.util.Random random)
Distribution
sample
in interface Distribution<DataType>
random
- Random-number generator to use in order to generate random numbers.