Quasirandom Sampling
This module is dedicated to sampling points, sequences and generation of random or quasi random object.
quasirandom(d1, d2=None, method='sobol', seed=1)
Generate a quasirandom point, or sequence of points with coefficients in the interval [0, 1].
Parameters:
Name | Type | Description | Default |
---|---|---|---|
d1 |
int |
number of points to generate (or number of dimensions if d2 is not provided) |
required |
d2 |
int |
number of dimensions |
None |
method |
str |
use the 'sobol' or 'kgf' sequences to generate points |
'sobol' |
seed |
int |
start seed for the sequence of numbers. if more than 1 point is generated then the seeds will be in the range [seed, seed + d1 -1] corresponding to each point in the resulting sequence. |
1 |
Returns:
Type | Description |
---|---|
ndarray |
np.ndarray: The sequence of quasirandom vectors |
Source code in chmpy/sampling/__init__.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
point_mapper
SamplingPointMapperMeta
Abstract base class of a sampling point mapper