/// <summary> /// Returns items within the time span. Both start and end are included /// </summary> /// <param name="TimeSpan"></param> /// <returns></returns> public IEnumerable <TimeStampValue> GetSubSeries(DateTimeSize TimeSpan) { int start = GetIndexOfValue(TimeSpan.Start); int end = GetIndexOfValue(TimeSpan.End); return(Items.Skip(start).Take(end - start + 1)); }
public TimeSpanValue(DateTimeSize Period, double Value) { TimePeriod = Period; this.Value = Value; }