private void Check(Func <double, double> function, double min, double max, double x)
        {
            var    inverseFunction = new InverseMonotonousFunction(function, min, max);
            double y = function(x);
            double z = inverseFunction.GetValue(y);

            output.WriteLine($"x = {x}");
            output.WriteLine($"F(x) = {y}");
            output.WriteLine($"F^{{-1}}(F(x)) = {z}");
            Assert.Equal(x, z, comparer);
        }
Ejemplo n.º 2
0
 public double Quantile(Probability p) => inverseCdf.GetValue(p);