bundles / scipy 1.17.1 / scipy / stats / _qmvnt / _cbc_lattice
function
scipy.stats._qmvnt:_cbc_lattice
source: /scipy/stats/_qmvnt.py :89
Signature
def _cbc_lattice ( n_dim , n_qmc_samples ) Summary
Compute a QMC lattice generator using a Fast CBC construction.
Parameters
n_dim: int > 0The number of dimensions for the lattice.
n_qmc_samples: int > 0The desired number of QMC samples. This will be rounded down to the nearest prime to enable the CBC construction.
Returns
q: float array : shape=(n_dim,)The lattice generator vector. All values are in the open interval
(0, 1).actual_n_qmc_samples: intThe prime number of QMC samples that must be used with this lattice, no more, no less.
Aliases
-
scipy.stats._qmvnt._cbc_lattice