Transform a distributionΒΆ

In this basic example we are going to use distribution algebra.

In [40]:
from __future__ import print_function
import openturns as ot
In [41]:
# create some distribution
distribution1 = ot.Uniform(0,1)
distribution2 = ot.Uniform(0,2)
In [42]:
# sum of distributions
distribution = distribution1 + distribution2
print(distribution)
RandomMixture(Trapezoidal(a = 0, b = 1, c = 2, d = 3))
In [43]:
# draw PDF
distribution.drawPDF()
Out[43]:
../../_images/examples_probabilistic_modeling_distribution_transformation_5_0.svg