isValidCDF

Return

true if valid cdf

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.