computeParametersFromMoments

Return

the values of n and p that match the moments with p as element 0 and n as element 1

Parameters

moments

the mean is in element 0 and the variance is in element 1, must not be null