# 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``` ``````def quasirandom(d1: int, d2=None, method="sobol", seed=1) -> np.ndarray: """ Generate a quasirandom point, or sequence of points with coefficients in the interval [0, 1]. Args: d1 (int): number of points to generate (or number of dimensions if d2 is not provided) d2 (int, optional): number of dimensions method (str, optional): use the 'sobol' or 'kgf' sequences to generate points seed (int, optional): 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. Returns: np.ndarray: The sequence of quasirandom vectors """ if d2 is None: return _SINGLE[method](seed, d1) else: return _BATCH[method](seed, seed + d1 - 1, d2) ``````

## `point_mapper`

### `SamplingPointMapperMeta`

Abstract base class of a sampling point mapper