Ejemplo n.º 1
0
        public void ValidateInverseCumulativeDistribution(double mu, double sigma, double x, double f)
        {
            var n = new LogNormal(mu, sigma);

            AssertHelpers.AlmostEqual(x, n.InverseCumulativeDistribution(f), 8);
            AssertHelpers.AlmostEqual(x, LogNormal.InvCDF(mu, sigma, f), 8);
        }
Ejemplo n.º 2
0
 internal static LineSeries CreateLineSeries(
     LogNormal logNormal,
     double lower,
     double upper,
     IList <OxyColor> defaultColors
     ) =>
 CreateLineSeries(
     logNormal,
     lower,
     upper,
     defaultColors,
     d => logNormal.InverseCumulativeDistribution(d),
     InterpolationAlgorithms.CatmullRomSpline
     );