{ } Raw JSON

bundles / scipy latest / 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 : int

The first line of the elementary permutation.

i2 : int

The second line of the elementary permutation.

k : int

The column of the elementary permutation.

disc : float

Centered discrepancy of the design before permutation.

Returns

discrepancy : float

Centered discrepancy of the design after permutation.

Aliases

  • scipy.stats._qmc._perturb_discrepancy