distance_mat_stages: Compute the distance matrix
Description
Compute the matrix of distances between probabilities,
e.g the transition probabilities for a given variable in a
staged event tree.
Usage
distance_mat_stages(x, distance = probdist.kl)
Value
The matrix with the distances between stages.
Arguments
- x
list of conditional probabilities for each stage.
- distance
the distance function e.g. probdist.kl
.