question: private int findBin ( double value ) { return FastMath . min ( FastMath . max ( ( int ) FastMath . ceil ( ( value - min ) / delta ) - 1 , 0 ) , binCount - 1 ) ; }
target:  Returns the index of the bin to which the given value belongs