Пример #1
0
        //不分组有效性校验
        public bool ValidityCheck(int[] vArray, Upanddown upanddown)
        {
            int availability_number;

            updownMethod.get_availability_number(vArray.Length, vArray, out availability_number);
            if (availability_number == 30)
            {
                return(upanddown.Data_validity_determination == 1 ? true : false);
            }
            return(true);
        }
Пример #2
0
        //响应&&计算
        public Upanddown GetReturn(double[] xArray, int[] vArray, double x0, double d, out double z, double reso, out double z1)
        {
            Upanddown upanddown = new Upanddown();

            x0 = LiftingMethodStandardSelection.InverseProcessValue(x0);
            updownMethod.upanddown_getz(xArray.Length, xArray, vArray, x0, d, out z);
            LiftingDistributionSelection.GetUpanddown(xArray, vArray, x0, d, ref upanddown);
            upanddown.μ0_final = LiftingMethodStandardSelection.GetAvgValue(upanddown.μ0_final);
            pub_function.resolution_getReso(upanddown.G, 0.000001, out upanddown.G);
            pub_function.resolution_getReso(upanddown.H, 0.000001, out upanddown.H);
            pub_function.resolution_getReso(upanddown.A, 0.000001, out upanddown.A);
            pub_function.resolution_getReso(upanddown.B, 0.000001, out upanddown.B);
            pub_function.resolution_getReso(upanddown.M, 0.000001, out upanddown.M);
            pub_function.resolution_getReso(upanddown.b, 0.000001, out upanddown.b);
            pub_function.resolution_getReso(SysParam.p, 0.000001, out upanddown.p);
            GetZ1(z, reso, out z1);
            return(upanddown);
        }
 public override void GetUpanddown(double[] xArray, int[] vArray, double x0, double d, ref Upanddown upanddown)
 {
     updownMethod.upanddown_norm_correct(xArray.Length, xArray, vArray, x0, d, out upanddown.Data_validity_determination, out upanddown.μ0_final, out upanddown.σ0_final, out upanddown.G, out upanddown.H, out upanddown.n, out upanddown.Sigma_mu, out upanddown.Sigma_sigma, out upanddown.result_i, out upanddown.vi, out upanddown.mi, out upanddown.A, out upanddown.B, out upanddown.M, out upanddown.b);
 }
 public abstract void GetUpanddown(double[] xArray, int[] vArray, double x0, double d, ref Upanddown upanddown);