rtbgym.utils.NormalDistribution#

class rtbgym.utils.NormalDistribution(mean, std, random_state=None)[source]#

Class to sample from normal distribution.

Parameters:
  • mean ({int, float, array-like}) – Mean parameter of the normal distribution.

  • std ({int, float, array-like}) – Standard deviation of the normal distribution.

  • random_state (int, default=None (>= 0)) – Random state.

Attributes:
random_state

Methods

sample([size])

Sample random variables from the pre-determined normal distribution.

sample(size=1)[source]#

Sample random variables from the pre-determined normal distribution.

Parameters:

size (int, default=1 (> 0)) – Total number of the random variable to sample.

Returns:

random_variables – Random variables sampled from the normal distribution.

Return type:

ndarray of shape (size, )

Methods