rv_random_sample

hep_spt.rv_random_sample(func, size=10000, **kwargs)[source]

Create a random sample from the given rv_frozen object. This is usually used after creating a scipy.stats.rv_discrete or scipy.stats.rv_continuous class.

Parameters
  • func (scipy.stats.rv_frozen) – function to use for the generation.

  • size (int) – size of the sample.

  • kwargs (dict) – any other argument to scipy.stats.rv_frozen.rvs.

Returns

Generated sample.

Return type

numpy.ndarray