Exemplo n.º 1
0
        private double ZFound(InitialStatisticalAnalys gr1, InitialStatisticalAnalys gr2)
        {
            double D = 0;

            for (int i = 0; i < gr1.l.Count; i++)
            {
                double l2 = 0;
                if (gr2.AvtoType == Distributions.Normal)
                {
                    l2 = Distributions.NormalfFound(gr1.l[i], gr2.Mx.Q, gr2.Gx.Q);
                }
                else if (gr2.AvtoType == Distributions.Exp)
                {
                    l2 = Distributions.ExpFound(gr1.l[i], gr2.Mx.Q);
                }
                else if (gr2.AvtoType == Distributions.Line)
                {
                    l2 = (gr1.l[i] - gr2.Min.Q) * gr2.Len.Q;
                }

                D = Math.Max(Math.Abs(gr1.F[i] - l2), D);
            }
            return(D);
        }