DistributionCollection.sample_func (function)
def sample_func(self, func, x, N=1000, func_kwargs={})
Draw samples from a callable function.
See also:
Arguments
func
(callable): callable functionx
(array like): x values to pass tofunc
.N
(int, optional, default=1000): number of samples to draw.func_kwargs
(dict, optional): additional keyword arguments to pass tofunc
.
Returns
- an array of models with shape (N, len(x))