QDpy
Loading...
Searching...
No Matches
__init__.py File Reference

Origin-free Sobol points and inverse-normal quasi-random samples. More...

Go to the source code of this file.

Namespaces

namespace  qdpy

Functions

 qdpy.hdsobol.gen_sobol_vectors (num, dim)
 Generate the 32-bit Joe–Kuo sequence using SciPy.
 qdpy.hdsobol.gen_sobol_randn (num)

Detailed Description

Origin-free Sobol points and inverse-normal quasi-random samples.

Definition in file __init__.py.

Function Documentation

◆ gen_sobol_randn()

qdpy.hdsobol.gen_sobol_randn ( num)
Transform one-dimensional Sobol points into quasi-normal samples.

Applying the inverse standard-normal CDF to the origin-free
sequence gives finite samples with no random generator state.

Definition at line 109 of file __init__.py.

◆ gen_sobol_vectors()

qdpy.hdsobol.gen_sobol_vectors ( num,
dim )

Generate the 32-bit Joe–Kuo sequence using SciPy.

Parameters
numRequested output length after the origin is dropped.
dimNumber of coordinates.
Returns
An array with one vector per requested point.

Draw and discard the origin before requesting the remaining points. Sequential calls with different lengths share the same prefix.

Return the requested number of Sobol points, skipping the origin.

SciPy generates the unscrambled 32-bit Joe–Kuo sequence. Requests
for zero points return an empty array with the requested width.

:param num: Number of points, from zero through 2**32 - 1.
:param dim: Number of coordinates, from one through 21,201.
:returns: Floating-point array of shape (num, dim).
:raises ValueError: If the requested count or dimension is outside
    the supported range.

Definition at line 82 of file __init__.py.