Exemplo n.º 1
0
        public bool GetBasicStat()
        {
            this.InitCount();
            if (this.Count < 1)
            {
                return(false);
            }
            double avgtemp = 0;
            double maxtemp = double.NegativeInfinity;
            double mintemp = double.PositiveInfinity;

            for (int i = start, c = 0; c < Count; i++)
            {
                double?temp = this.GetProperty(i);
                if (temp != null)
                {
                    double dtemp = (double)temp;
                    avgtemp += dtemp / Count;
                    if (maxtemp < dtemp)
                    {
                        maxtemp = dtemp;
                    }
                    if (mintemp > dtemp)
                    {
                        mintemp = dtemp;
                    }
                    c++;
                }
            }
            this.Avg     = avgtemp;
            this.Min     = mintemp;
            this.Max     = maxtemp;
            this.STDev_E = STDEV.GetEntirety(this, this.Avg, this.start, this.Count);
            return(true);
        }
Exemplo n.º 2
0
 public virtual void getSTDev_G()
 {
     this.STDev_G = STDEV.GetGroup(this, this.Avg, start, this.Count, this.GroupLength, this.StdevType);
 }