bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _qmc / _random_cd
function
scipy.stats._qmc:_random_cd
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_qmc.py:2612
Signature
def _random_cd(best_sample: np.ndarray, n_iters: int, n_nochange: int, rng: _RNG, **kwargs: dict) → np.ndarraySummary
Optimal LHS on CD.
Extended Summary
Create a base LHS and do random permutations of coordinates to lower the centered discrepancy. Because it starts with a normal LHS, it also works with the scramble keyword argument.
Two stopping criterion are used to stop the algorithm: at most, n_iters iterations are performed; or if there is no improvement for n_nochange consecutive iterations.
Aliases
scipy.stats._qmc._random_cd