Note: The library does not check for all possible errors in the input parameters of the methods. For the cases that a check is done and the parameter does not fit – the method returns the value -999. In several cases the algorithm for the inverse is trying the forward method and the result may include a residual error. If accuracy is important re-check the result by implementing the forward method. Some of the algorithms are taken from this site : algorithms
This method returns an array of two Double variables, the first is the probability that the sum of n squares of normal distributed variables (n Degrees Of Freedom) will be less than x, and the second is the density function for x.