public void add ( final DoubleHistogram fromHistogram ) throws ArrayIndexOutOfBoundsException { int arrayLength = fromHistogram . integerValuesHistogram . countsArrayLength ; AbstractHistogram fromIntegerHistogram = fromHistogram . integerValuesHistogram ; for ( int i = 0 ; i < arrayLength ; i ++ ) { long count = fromIntegerHistogram . getCountAtIndex ( i ) ; if ( count > 0 ) { recordValueWithCount ( fromIntegerHistogram . valueFromIndex ( i ) * fromHistogram . integerToDoubleValueConversionRatio , count ) ; } } }
Add the contents of another histogram to this one .