Here is a simple example that computes the parameters of the copula:
>>> from copulalib import copulafit >>> import Numpy as np >>> x = array([1, 2, 3, 4, 5, 6]) >>> pymat.eval(H, 'y = dct(x)') >>> print pymat.get(H, 'y') [ 8.57321410e+00 -4.16256180e+00 -1.55403172e-15 -4.08248290e-01 -1.88808530e-15 -8.00788912e-02] >>> pymat.close(H)