示例#1
0
 public void SetTimeSeriesValuesForElement(IList <T> values, int elementIndex)
 {
     ValueSet.CheckElementIndex(this, elementIndex);
     for (int timeIndex = 0; timeIndex < Values2D.Count; timeIndex++)
     {
         Values2D[timeIndex][elementIndex] = values[elementIndex];
     }
 }
示例#2
0
        public IList <T> GetTimeSeriesValuesForElement(int elementIndex)
        {
            ValueSet.CheckElementIndex(this, elementIndex);

            IList <T> values = new List <T>(Values2D.Count);

            for (int timeIndex = 0; timeIndex < Values2D.Count; timeIndex++)
            {
                values.Add(Values2D[timeIndex][elementIndex]);
            }
            return(values);
        }
示例#3
0
 public void SetElementValuesForTime(IList <T> values, int timeIndex)
 {
     ValueSet.CheckElementIndex(this, timeIndex);
     Values2D[timeIndex] = values;
 }
示例#4
0
 public void SetValue(T value, int timeIndex, int elementIndex)
 {
     ValueSet.CheckTimeIndex(this, timeIndex);
     ValueSet.CheckElementIndex(this, elementIndex);
     Values2D[timeIndex][elementIndex] = value;
 }
示例#5
0
 public T GetValue(int timeIndex, int elementIndex)
 {
     ValueSet.CheckTimeIndex(this, timeIndex);
     ValueSet.CheckElementIndex(this, elementIndex);
     return(Values2D[timeIndex][elementIndex]);
 }