Ejemplo n.º 1
0
 public void Record(TimeHistogram <T> values)
 {
     foreach (var key in values.Keys)
     {
         Record(key, values.Value(key));
     }
 }
Ejemplo n.º 2
0
 public AggregateStatistics()
 {
     HeartRateHistogram = new TimeHistogram <double>();
     PaceHistogram      = new TimeHistogram <TimeSpan>();
     Routes             = new SortedDictionary <DateTime, IList <GpxTrackPoint> >();
     MinLatitude        = double.MaxValue;
     MaxLatitude        = double.MinValue;
     MinLongitude       = double.MaxValue;
     MaxLongitude       = double.MinValue;
 }
Ejemplo n.º 3
0
 public RunStatistics()
 {
     HeartRateHistogram = new TimeHistogram <double>();
     PaceHistogram      = new TimeHistogram <TimeSpan>();
     TotalDistance      = 0.0D;
     TotalTime          = TimeSpan.Zero;
     TotalHeartbeats    = 0.0D;
     MaxHeartRate       = 0.0D;
     TotalSteps         = 0.0D;
     TotalClimb         = 0.0D;
     Pauses             = new List <PauseInfo>();
     _lastPoint         = null;
     Route          = new SortedDictionary <DateTime, GpxTrackPoint>();
     MinLatitude    = double.MaxValue;
     MaxLatitude    = double.MinValue;
     MinLongitude   = double.MaxValue;
     MaxLongitude   = double.MinValue;
     _lastIntervals = new PointIntervalData[Settings.AveragingPeriod];
     FastestPace    = Settings.SlowestDisplayedPace;
     SlowestPace    = new TimeSpan();
     MaxSpeed       = double.MinValue;
 }