Scripting > Math Functions

  
Set Data Container

setData(hec.io.DataContainer container)

 

Sets the data container for the current data set.  For time series data sets, this is a hec.io.TimeSeriesContainer.  For paired data sets, container should be a hec.io.PairedDataContainer.  Containers are generated by some of the other functions.

 

The hec.io.DataContainer class and the hec.io.TimeSeriesContainer and the hec.io.PairedDataContainer subclasses contain the time series and paired data values.

 

Parameters:

container – A hec.io.TimeSeriesContainer for time series data sets, or a hec.io.PairedDataContainer for paired data sets.

Example: dataSet.setData(TSContainer)

Returns:  Nothing

Generated Exceptions: Throws a HecMathException if container is not of type hec.io.TimeSeriesContainer for time series data sets or not of type hec.io.PairedDataContainer for paired data sets.