/// <summary> /// Estimates a new Gamma distribution from a given set of observations. /// </summary> /// public static GammaDistribution Estimate(double[] observations, double[] weights) { var n = new GammaDistribution(); n.Fit(observations, weights, null); return(n); }
/// <summary> /// Estimates a new Gamma distribution from a given set of observations. /// </summary> /// public static GammaDistribution Estimate(double[] observations, double[] weights = null, double tol = 1e-8, int iterations = 1000) { var n = new GammaDistribution(); n.Fit(observations, weights, new GammaOptions() { Tolerance = tol, Iterations = iterations }); return(n); }