makeParameterArray

Assigns the probability associated with each cdf value to the integers starting at 0.

Return

the pairs

Parameters

cdf

the probability array. must have valid probability elements and last element equal to 1. Every element must be greater than or equal to the previous element. That is, monotonically increasing.


Assigns the probability associated with each cdf value to the integers starting at start.

Return

the pairs as an array[] = {v1, cp1, v2, cp2, ...},

Parameters

start

place to start assignment

cdf

the probability array. must have valid probability elements and last element equal to 1. Every element must be greater than or equal to the previous element. That is, monotonically increasing.


Makes a pair array that can be used for the parameters of the DEmpiricalCDF distribution

Return

a properly configured array of pairs for the DEmpiricalCDF distribution

Parameters

values

an array of values that will be drawn from

cdf

a cdf corresponding to the values