Bases: Simulator
Implements a simulator based on a sampling function.
-
sample(batch_shape: tuple[int, ...], **kwargs) → dict[str, ndarray][source]
-
rejection_sample(batch_shape: tuple[int, ...], predicate: Callable[[dict[str, ndarray]], ndarray], *, axis: int = 0, sample_size: int = None, **kwargs) → dict[str, ndarray]