PythonDistribution¶
- class PythonDistribution(dim=1)¶
Allow one to override Distribution from Python.
- Parameters:
- dimpositive int
the distribution dimension
Methods
computeCDF(X)CDF accessor.
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
Distributionwhich 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
OpenTURNS