Loading [MathJax]/extensions/tex2jax.js
scipy 1.10.1 Pypi GitHub Homepage
Other Docs

ParametersReturns
_perturb_discrepancy(sample: 'np.ndarray', i1: 'int', i2: 'int', k: 'int', disc: 'float')

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.

Centered discrepancy after an elementary perturbation of a LHS.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/stats/_qmc.py#373
type: <class 'function'>
Commit: