question: public TDoubleDoubleHashMap absoluteDistributionLog2 ( double descretization ) { TDoubleDoubleHashMap freq = new TDoubleDoubleHashMap ( ) ; int size = values . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { double bin = Math . ceil ( Math . log ( values . get ( i ) / descretization ) / Math . log ( 2.0 ) ) ; bin = Math . max ( bin , 0.0 ) ; double binWidth = Math . pow ( 2 , bin ) - Math . pow ( 2 , bin - 1 ) ; binWidth = Math . max ( 1.0 , binWidth ) ; freq . adjustOrPutValue ( Math . pow ( 2 , bin ) * descretization , weights . get ( i ) / binWidth , weights . get ( i ) / binWidth ) ; } return freq ; }
target:  Returns a histogram of all samples where samples are aggregated into bins with log2 scaled width. The key of the bin is the upper bin border.