/// <summary> /// Estimates a new Beta distribution from a set of observations. /// </summary> /// public static BetaDistribution Estimate(double[] samples, BetaOptions options) { var beta = new BetaDistribution(1, 1); beta.Fit(samples, (double[])null, options); return(beta); }
/// <summary> /// Estimates a new Beta distribution from a set of weighted observations. /// </summary> /// public static BetaDistribution Estimate(double[] samples, double[] weights) { var beta = new BetaDistribution(1, 1); beta.Fit(samples, weights, null); return(beta); }