{ } Raw JSON

bundles / scipy latest / scipy / stats / _qmc / _random_cd

function

scipy.stats._qmc:_random_cd

source: /scipy/stats/_qmc.py :2624

Signature

def   _random_cd ( best_sample : np.ndarray n_iters : int n_nochange : int rng : GeneratorType ** kwargs : dict )  →  np.ndarray

Summary

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