Vinecop.to_json
- Vinecop.to_json(self) str
Converts the copula into a nlohmann::json object.
The JSON-like str object contains two nodes :
"structure"
for the vine structure, which itself contains nodes"array"
for the structure triangular array and"order"
for the order vector, and"pair copulas"
. The former two encode the R-Vine structure and the latter is a list of child nodes for the trees ("tree1"
,"tree2"
, etc), each containing a list of child nodes for the edges ("pc1"
,"pc2"
, etc). See Bicop::to_json() for the encoding of pair-copulas.- Returns:
the nlohmann::json object containing the copula.