bundles / scipy 1.17.1 / scipy / stats / _qmc / _perturb_discrepancy
function
scipy.stats._qmc:_perturb_discrepancy
source: /scipy/stats/_qmc.py :525
Signature
def _perturb_discrepancy ( sample : np.ndarray , i1 : int , i2 : int , k : int , disc : float ) Summary
Centered discrepancy after an elementary perturbation of a LHS.
Extended Summary
An elementary perturbation consists of an exchange of coordinates between two points: sample[i1, k] <-> sample[i2, k]. By construction, this operation conserves the LHS properties.
Parameters
sample: array_like (n, d)The sample (before permutation) to compute the discrepancy from.
i1: intThe first line of the elementary permutation.
i2: intThe second line of the elementary permutation.
k: intThe column of the elementary permutation.
disc: floatCentered discrepancy of the design before permutation.
Returns
discrepancy: floatCentered discrepancy of the design after permutation.
Aliases
-
scipy.stats._qmc._perturb_discrepancy