Vinecop.reorient

Vinecop.reorient(self, conditioning_set: collections.abc.Sequence[int]) None

Relabels the vine to an equivalent one whose order tail equals conditioning_set.

This is a value-preserving re-orientation (a port of VineCopulas’ samplingmatrix): the fitted model is unchanged (pdf`/`loglik invariant), only its sampling-order representation changes so that the variables in conditioning_set are drawn first and can be conditioned on with simulate_conditional(). It chooses, per tree, which conditioned variable sits on the matrix diagonal, and flips each pair copula whose stored orientation no longer matches its new position. Throws if the current structure admits no sampling order ending in conditioning_set (fit with set_conditioning_set() to guarantee one exists).

Parameters:
conditioning_setlist of int

1-based variable indices to place at the tail of get_order().