public void add ( TimeSeries other ) { TreeMap < Long , Integer > otherSeries = other . getSeries ( ) ; for ( Map . Entry < Long , Integer > event : otherSeries . entrySet ( ) ) { record ( event . getKey ( ) + other . getWidthNano ( ) / 2 , event . getValue ( ) ) ; } }
Add one histogram to the current one . We preserve the width in the current TimeSeries .