def bucket_index(value)
      return 0 if value < @min_bucket_value
      return @number_of_buckets - 1 if value >= @max_bucket_value

      ((Math.log(value) - Math.log(@min_bucket_value)) / @bucket_size).floor
    end
def bucket_index(value)
      return 0 if value < @min_bucket_value
      return @number_of_buckets - 1 if value >= @max_bucket_value

      ((Math.log(value) - Math.log(@min_bucket_value)) / @bucket_size).floor
    end
Returns the bucket index for a value