Пример #1
0
        public override IntervalEstimation IntervalDistribution(double[] xArray, int[] vArray, double reponseProbability, double confidenceLevel)
        {
            MLR_polar.Max_Likelihood_Estimate(xArray, vArray, "logistic", out var mu, out var sigma, out var L);
            MLR_polar.Likelihood_Ratio_Polar(xArray, vArray, "logistic", mu, sigma, reponseProbability, confidenceLevel, out var final_result);
            IntervalEstimation ret = new IntervalEstimation();

            ret.Confidence.Down = final_result[5];
            ret.Confidence.Up   = final_result[4];
            ret.Mu.Down         = final_result[1];
            ret.Mu.Up           = final_result[0];
            ret.Sigma.Down      = final_result[3];
            ret.Sigma.Up        = final_result[2];
            return(ret);
        }
Пример #2
0
 public IntervalEstimation IntervalDistribution(double[] xArray, int[] vArray, double reponseProbability, double confidenceLevel)
 {
     MLR_polar.Max_Likelihood_Estimate(xArray, vArray, "logistic", out var mu, out var sigma, out var L);
     MLR_polar.Likelihood_Ratio_Polar(xArray, vArray, "logistic", mu, sigma, reponseProbability, confidenceLevel, out var final_result);
     return(IntervalEstimation.Parse(final_result));
 }