PythonDistribution

class PythonDistribution(dim=1)

Allow one to override Distribution from Python.

Parameters:
dimpositive int

the distribution dimension

Methods

computeCDF(X)

CDF accessor.

getDimension()

Dimension accessor.

getRange()

Range accessor.

Notes

It is not necessary to implement all the methods. Only the computeCDF() and getDimension() methods are mandatory. In addition, the getRange() method is mandatory in dimension more than 1. All the methods which are not implemented are inherited from Distribution which implements some generic numerical methods.

Examples

Not useful on its own, see the examples section on how to inherit from it.

__init__(dim=1)

Constructor.

computeCDF(X)

CDF accessor.

getDimension()

Dimension accessor.

getRange()

Range accessor. Optional, but highly recommended

Examples using the class

Sampling from an unscaled probability density

Sampling from an unscaled probability density

Posterior sampling using a PythonDistribution

Posterior sampling using a PythonDistribution

Overview of univariate distribution management

Overview of univariate distribution management

Create a customized distribution or copula

Create a customized distribution or copula