public void ValidateInverseCumulativeDistribution(double scale, double x) { var n = new Rayleigh(scale); double cdf = 1.0 - Math.Exp(-x * x / (2.0 * scale * scale)); Assert.AreEqual(x, n.InverseCumulativeDistribution(cdf)); Assert.AreEqual(x, Rayleigh.InvCDF(scale, cdf)); }