Exemple #1
0
 public FramesCollection(int maxFrameDurationInMs, int measuringIntervalInSec)
 {
     this.maxFrameDurationInMs   = maxFrameDurationInMs;
     this.measuringIntervalInSec = measuringIntervalInSec;
     this.frames         = new StatisticCollection(maxFrameDurationInMs);
     this.intervalFrames = new StatisticCollection(maxFrameDurationInMs);
 }
Exemple #2
0
        public StatisticCollection Clone()
        {
            StatisticCollection statistics = new StatisticCollection(this.maxValue)
            {
                valueToCount = new int[this.valueToCount.GetLength(0)]
            };

            this.valueToCount.CopyTo(statistics.valueToCount, 0);
            statistics.moda              = this.moda;
            statistics.average           = this.average;
            statistics.standardDeviation = this.standardDeviation;
            statistics.totalCount        = this.totalCount;
            return(statistics);
        }
Exemple #3
0
 private void StartNewInterval()
 {
     this.intervalStartTime = UnityTime.realtimeSinceStartup;
     this.intervalFrames    = new StatisticCollection(this.maxFrameDurationInMs);
 }