Fix density check.

We should just care about the min and max values, since the jump index
can be the `value_to_test - minimum_value`.