DVineStructure
- class DVineStructure(*args, **kwargs)
A class for D-vine structures.
D-vines are a special class of R-vines where each tree is a path. A D-vine structure is determined entirely by the order of variables. For example, if the order is
(1, 2, 3, 4)
, the first tree in the vine is 1-2-3-4 and all further trees are unique due to the proximity condition.Note that
DVineStructure
objects inherit the methods and attributes ofRVineStructure
objects.Attributes
dim
The dimension.
matrix
Gets the R-vine matrix representation.
order
The variable order.
trunc_lvl
The truncation level.
Methods
Instantiates as a D-vine for a given dimension.
Instantiates an RVineStructure from a JSON file.
Instantiates from a JSON-like str object.
Instantiates an RVineStructure object from a matrix representing an R-vine array.
Instantiates as a D-vine with a given ordering of the variables.
Access elements of the minimum array.
Access elements of the needed_hfunc1 array.
Access elements of the needed_hfunc2 array.
Randomly sample a regular vine structure.
Converts the structure to a string representation (most useful for printing).
Accesses elements of the structure array.
Write the structure into a JSON file.
Converts the structure into a JSON-like str object.
Truncates the R-vine structure.