public void addEvents ( Matrix events ) { int seriesCount = getSeriesCount ( ) ; for ( int r = 0 ; r < events . getRowCount ( ) ; r ++ ) { long timestamp = events . getAsLong ( r , 0 ) ; for ( int c = 1 ; c < events . getColumnCount ( ) ; c ++ ) { double value = events . getAsDouble ( r , c ) ; addEvent ( timestamp , seriesCount + c - 1 , value ) ; } } }
Adds the events of a new Matrix to the time series . The first column of the matrix must contain the timestamps .