Package-level declarations

Functions

Link copied to clipboard
fun hammersley2D(i: Int, n: Int): Vector2

Computes a 2D Hammersley point based on the given index and total number of samples.

Link copied to clipboard
fun hammersley3D(i: Int, n: Int): Vector3

Computes a 3D point in the Hammersley sequence based on the given index and total number of samples.

Link copied to clipboard
fun hammersley4D(i: Int, n: Int): Vector4

Computes a 4D Hammersley point based on the given index and total number of samples.

Link copied to clipboard
fun radicalInverse(base: Int, i: Int): Double

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

Link copied to clipboard

Computes the radical inverse of a given unsigned integer i in base 2.