public ApproximateHistogram copy ( ApproximateHistogram h ) { if ( h . size > this . size ) { this . size = h . size ; this . positions = new float [ size ] ; this . bins = new long [ size ] ; } System . arraycopy ( h . positions , 0 , this . positions , 0 , h . binCount ) ; System . arraycopy ( h . bins , 0 , this . bins , 0 , h . binCount ) ; this . min = h . min ; this . max = h . max ; this . binCount = h . binCount ; this . count = h . count ; return this ; }
Copies histogram h into the current histogram .