Ejemplo n.º 1
0
        public OutcomeHistogram Extend(Periods period)
        {
            var periods = _periodSlicer.Slice(period);
            var result  = getPeriods(periods);

            result.Period = period.ToString();
            return(result);
        }
        public Dictionary <TimePeriod, IEnumerable <RunMeta <int> > > Extend(Sections section, Periods period)
        {
            var result = new Dictionary <TimePeriod, IEnumerable <RunMeta <int> > >();

            var feature = _mapper.Map(section);
            var periods = _slicer.Slice(period);

            foreach (var slice in periods)
            {
                var timings = _finder.Get(feature, slice.Start, slice.End);
                result.Add(slice, timings);
            }

            return(result);
        }