Esempio n. 1
0
        /// <summary>
        ///   Estimates a new Beta distribution from a set of observations.
        /// </summary>
        ///
        public static GeneralizedBetaDistribution Estimate(double[] samples, int min, int max, GeneralizedBetaOptions options)
        {
            var beta = new GeneralizedBetaDistribution(1, 1, min, max);

            beta.Fit(samples, (double[])null, options);
            return(beta);
        }
Esempio n. 2
0
        /// <summary>
        ///   Estimates a new Beta distribution from a set of weighted observations.
        /// </summary>
        ///
        public static GeneralizedBetaDistribution Estimate(double[] samples, int min, int max, double[] weights)
        {
            var beta = new GeneralizedBetaDistribution(1, 1, min, max);

            beta.Fit(samples, weights, null);
            return(beta);
        }