Vinecop.to_json
- Vinecop.to_json(self: pyvinecopulib.Vinecop, filename: str) None
Writes the copula object into a JSON file.
The output file contains 2 attributes :
"structure"
for the vine structure, which itself contains attributes"array"
for the structure triangular array and"order"
for the order vector, and"pair copulas"
."pair copulas"
contains a list of attributes for the trees ("tree1"
,"tree2"
, etc), each containing a list of attributes for the edges ("pc1"
,"pc2"
, etc). SeeBicop.to_file()
objects for the encoding of pair-copulas.- Parameters:
filename – The name of the JSON file to write.