question: void materialize ( ) { if ( cachefill < 0 ) { return ; } double min = Double . MAX_VALUE , max = Double . MIN_VALUE ; for ( int i = 0 ; i < cachefill ; i ++ ) { min = Math . min ( min , cachec [ i ] ) ; max = Math . max ( max , cachec [ i ] ) ; } LinearScale scale = new LinearScale ( min , max ) ; min = scale . getMin ( ) ; max = scale . getMax ( ) ; this . base = min ; this . max = max ; this . binsize = ( max - min ) / this . destsize ; this . data = new float [ this . destsize << 1 ] ; size = destsize ; final int end = cachefill ; cachefill = - 1 ; for ( int i = 0 ; i < end ; i ++ ) { increment ( cachec [ i ] , cachev [ i ] ) ; } cachec = null ; cachev = null ; }
target:  Materialize the histogram from the cache.