Empirical RV
A random variable that samples from the provided data. Each value is equally likely to occur.
Parameters
data
the data to sample from
stream Num
the random number stream to use
constructor(lowerLimit: Double, numPoints: Int, width: Double, stream: RNStreamIfc = KSLRandom.nextRNStream())
Creates a series of numPoints points starting at the lower limit, each width units apart. Each point in the series will be equally likely to occur.
Creates a series of numPoints points starting at the lower limit, each an equal distance apart based on the number of points. Each point in the series will be equally likely to occur.
constructor(data: DoubleArray, stream: RNStreamIfc = KSLRandom.nextRNStream(), name: String? = null)
Parameters
data
the data to sample from
stream
the random number stream to use