public IntervalResult(IActivity activity, IntervalResultCache resultCache, double distance)
 {
     this.activity = activity;
     this.resultCache = resultCache;
     this.Distance = distance;
     this.factor = 1000.0 / distance;
 }
        private void setInterval()
        {
            double[] distances = new double[] { 100, 200, 300, 400, 800, 1000, 1609.344 };
            IList<IntervalResult> result = new List<IntervalResult>();
            Predict.SetAgeSexFromActivity(m_ppcontrol.SingleActivity);
            IntervalResultCache resultCache = new IntervalResultCache(m_ppcontrol.Distance, m_ppcontrol.Time);
            for (int i = 0; i < distances.Length; i++)
            {
                IntervalResult t = new IntervalResult(m_ppcontrol.SingleActivity, resultCache, distances[i]);
                result.Add(t);
            }

            intervalList.RowData = result;
        }