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`/`loglikinvariant), only its sampling-order representation changes so that the variables inconditioning_setare drawn first and can be conditioned on withsimulate_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 inconditioning_set(fit withset_conditioning_set()to guarantee one exists).- Parameters:
- conditioning_setlist of int
1-based variable indices to place at the tail of
get_order().