Modified to extend AbstractContinuousDistribution. Changed to throw IllegalArgumentException instead of returning NaN for inverseCumulativeProbability argument not in [0,1].