Factory helpers for creating Python copula wrappers.
This class forwards to the C++ ``CopulaFactory`` and wraps the returned C++
object in the appropriate Python class.
Definition at line 132 of file Copula.py.
| GaussianCopula Copula.CopulaFactoryWrapper.gaussian |
( |
MatrixLike |
R, |
|
|
Optional[int] |
seed = None |
|
) |
| |
|
static |
Create a Gaussian copula from a correlation matrix.
Args:
R: Square correlation matrix.
seed: Optional random seed.
Returns:
A ``GaussianCopula`` instance.
Examples:
>>> cop = CopulaFactoryWrapper.gaussian([[1.0, 0.3], [0.3, 1.0]], seed=7)
>>> isinstance(cop.sample_u(), list)
True
Definition at line 157 of file Copula.py.