gstools.random.dist_gen

gstools.random.dist_gen(pdf_in=None, cdf_in=None, ppf_in=None, **kwargs)[source]

Distribution Factory.

Parameters:
  • pdf_in (callable or None, optional) – Probability distribution function of the given distribution, that takes a single argument Default: None

  • cdf_in (callable or None, optional) – Cumulative distribution function of the given distribution, that takes a single argument Default: None

  • ppf_in (callable or None, optional) – Percent point function of the given distribution, that takes a single argument Default: None

  • **kwargs – Keyword-arguments forwarded to scipy.stats.rv_continuous.

Returns:

dist – The constructed distribution.

Return type:

scipy.stats.rv_continuous

Notes

At least pdf or cdf needs to be given.