radicalInverse

Computes the radical inverse of an integer i in a given base. This method is often used in quasi-random sequence generation for sampling.

Return

The radical inverse value as a Double, within the range [0, 1).

Parameters

base

The base in which to compute the radical inverse. Must be greater than 1.

i

The integer for which the radical inverse is calculated. Must be non-negative.