is Valid PMF
Each element must be in (0,1) and sum of elements must be less than or equal to 1.0.
Note: This function does not permit mass points with 0.0 probability, and it does not permit a mass point with probability 1.0.
Return
true if the array represents a probability mass function
Parameters
prob
the array to check, must not be null, must have at least two elements