Transform a distribution¶
In this basic example we are going to use distribution algebra.
from __future__ import print_function import openturns as ot
# create some distribution distribution1 = ot.Uniform(0,1) distribution2 = ot.Uniform(0,2)
# sum of distributions distribution = distribution1 + distribution2 print(distribution)
RandomMixture(Trapezoidal(a = 0, b = 1, c = 2, d = 3))
# draw PDF distribution.drawPDF()