Note
Click here to download the full example code
Create a copulaΒΆ
In this example we are going to create a Normal copula from a correlation matrix.
from __future__ import print_function
import openturns as ot
import openturns.viewer as viewer
from matplotlib import pylab as plt
ot.Log.Show(ot.Log.NONE)
create the distribution
R = ot.CorrelationMatrix(3)
R[0, 1] = 0.25
R[1, 2] = 0.25
copula = ot.NormalCopula(R)
print(copula)
Out:
NormalCopula(R = [[ 1 0.25 0 ]
[ 0.25 1 0.25 ]
[ 0 0.25 1 ]])
Total running time of the script: ( 0 minutes 0.002 seconds)