PWCEmpiricalRV

constructor(breakPoints: DoubleArray, proportions: DoubleArray = DoubleArray(breakPoints.size - 1) { 1.0 / (breakPoints.size - 1) }, streamNum: Int)

Parameters

streamNum

supplied the number of the stream instead of the stream


constructor(histogram: HistogramIfc, stream: RNStreamIfc = KSLRandom.nextRNStream())

Note the requirements for breakpoints and proportions.

Parameters

histogram

a histogram specifying the breakpoints and proportions

stream

The random number stream.


constructor(histogram: HistogramIfc, streamNum: Int)

Note the requirements for breakpoints and proportions.

Parameters

histogram

a histogram specifying the breakpoints and proportions

streamNum

supplied the number of the stream instead of the stream


constructor(    breakPoints: DoubleArray,     proportions: DoubleArray = DoubleArray(breakPoints.size - 1) { 1.0 / (breakPoints.size - 1) },     stream: RNStreamIfc = KSLRandom.nextRNStream())

Parameters

breakPoints

The break points defining the intervals such that pj is associated with breakpoints bj and bj+1 for j = 0, 1,..., n-1, where n is the number of break points. The number of breakpoints should be 1 more than the number of proportions. The breakpoints must be strictly increasing and finite.

proportions

A double array holding the proportion associated with the intervals defined by the breakpoints. All proportions must be strictly greater than 0 and strictly less than 1. If not supplied, the default is intervals with equal probability. That is, with proportion equal to 1.0/(n - 1).

stream

The random number stream.