This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _qmc / Halton / _random

function

scipy.stats._qmc:Halton._random

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_qmc.py:1252

Signature

def _random(self, n: IntNumber = 1, *, workers: IntNumber = 1) → np.ndarray

Summary

Draw n in the half-open interval [0, 1).

Parameters

n : int, optional

Number of samples to generate in the parameter space. Default is 1.

workers : int, optional

Number of workers to use for parallel processing. If -1 is given all CPU threads are used. Default is 1. It becomes faster than one worker for n greater than .

Returns

sample : array_like (n, d)

QMC sample.

Aliases

  • scipy.stats._qmc.Halton._random