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]; } }
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); }
public void SetElementValuesForTime(IList <T> values, int timeIndex) { ValueSet.CheckElementIndex(this, timeIndex); Values2D[timeIndex] = values; }
public void SetValue(T value, int timeIndex, int elementIndex) { ValueSet.CheckTimeIndex(this, timeIndex); ValueSet.CheckElementIndex(this, elementIndex); Values2D[timeIndex][elementIndex] = value; }
public T GetValue(int timeIndex, int elementIndex) { ValueSet.CheckTimeIndex(this, timeIndex); ValueSet.CheckElementIndex(this, elementIndex); return(Values2D[timeIndex][elementIndex]); }