Пример #1
0
 public SlimTimeSeries(TimeSeriesReponseMeta source) : base(source)
 {
     if (source is SlimTimeSeries)
     {
         var slim = source as SlimTimeSeries;
         Values = (double[]) slim.Values.Clone();
     } else if (source is SimpleTimeSeries)
     {
         var simple = source as SimpleTimeSeries;
         Values = simple.Events.Select(evt => evt.Value).ToArray();
     }
 }
Пример #2
0
 public SlimTimeSeries(TimeSeriesReponseMeta source) : base(source)
 {
     if (source is SlimTimeSeries)
     {
         var slim = source as SlimTimeSeries;
         Values = (double[])slim.Values.Clone();
     }
     else if (source is SimpleTimeSeries)
     {
         var simple = source as SimpleTimeSeries;
         Values = simple.Events.Select(evt => evt.Value).ToArray();
     }
 }
Пример #3
0
 public TimeSeriesFullSummary(TimeSeriesReponseMeta source) : base(source)
 {
     if (source is TimeSeriesFullSummary)
     {
         var full = source as TimeSeriesFullSummary;
         RunNumber         = full.RunNumber;
         SingleURL         = full.SingleURL;
         NetworkElement    = full.NetworkElement;
         RecordingElement  = full.RecordingElement;
         RecordingVariable = full.RecordingVariable;
         FunctionalUnit    = full.FunctionalUnit;
     }
 }
Пример #4
0
 public TimeSeriesReponseMeta(TimeSeriesReponseMeta source)
 {
     Name          = source.Name;
     Units         = source.Units;
     NoDataValue   = source.NoDataValue;
     Min           = source.Min;
     Max           = source.Max;
     Mean          = source.Mean;
     Sum           = source.Sum;
     StartDate     = source.StartDate;
     EndDate       = source.EndDate;
     TimeStep      = source.TimeStep;
     refTimeSeries = source.refTimeSeries;
 }
Пример #5
0
 public TimeSeriesReponseMeta(TimeSeriesReponseMeta source)
 {
     Name = source.Name;
     Units = source.Units;
     NoDataValue = source.NoDataValue;
     Min = source.Min;
     Max = source.Max;
     Mean = source.Mean;
     Sum = source.Sum;
     StartDate = source.StartDate;
     EndDate = source.EndDate;
     TimeStep = source.TimeStep;
     refTimeSeries = source.refTimeSeries;
 }
Пример #6
0
 public TimeSeriesFullSummary(TimeSeriesReponseMeta source) : base(source)
 {
     if (source is TimeSeriesFullSummary)
     {
         var full = source as TimeSeriesFullSummary;
         RunNumber = full.RunNumber;
         SingleURL = full.SingleURL;
         NetworkElement = full.NetworkElement;
         RecordingElement = full.RecordingElement;
         RecordingVariable = full.RecordingVariable;
     }
 }