Custom Sampler#

class rocketpy.stochastic.CustomSampler[source]#

Abstract subclass for user defined samplers

abstract sample(n_samples=1)[source]#

Generates samples from the custom distribution

Parameters:

n_samples (int, optional) – Numbers of samples to be generated

Returns:

samples_list – A list with n_samples elements, each of which is a valid sample

Return type:

list

abstract reset_seed(seed=None)[source]#

Resets the seeds of all associated stochastic generators

Parameters:

seed (int, optional) – Seed for the random number generator. The default is None

Return type:

None