uvex_transients.phase_space.sampling.base.Sampler.draw#
- abstractmethod Sampler.draw(x: ArrayLike, n: int, seed: SeedSequence) int[source]#
Make n independent tries at a point and return how many succeed.
- Parameters:
x (
array-like) – The point, in the coordinates ofspace, shape(ndim,).n (
int) – The number of tries.seed (
numpy.random.SeedSequence) – The source of all the randomness of the tries. The same point, count and seed give the same number of successes.
- Returns:
The number of successes, between 0 and n.
- Return type: