/// <summary>
        ///     Records the current value
        /// </summary>
        /// <param name="currentPosition"></param>
        /// <param name="relocatedPosition"></param>
        public virtual void RecordCurrentValue(double currentPosition, double relocatedPosition)
        {
            SpeedDistancePoint currentPoint = GetValue(relocatedPosition);

            if (currentPoint != null)
            {
                PreviousData.Add(new SpeedDistancePoint(currentPosition, currentPoint.Speed));
            }
        }
Example #2
0
 /// <summary>
 ///     Records the current value
 /// </summary>
 /// <param name="currentSpeed"></param>
 public void RecordCurrentValue(double currentSpeed)
 {
     PreviousData.Add(GetValue(currentSpeed));
 }