Skip to main content

latest_diagonal

Function latest_diagonal 

Source
pub fn latest_diagonal(t: &TriangleView<'_>) -> Vec<f64>
Expand description

Extract the latest-observed cumulative value for each origin.

For a square triangle of size n, origin i’s latest observed development age is n − 1 − i (anti-diagonal). Returns a Vec<f64> of length n.