Skip to main content

Module validate

Module validate 

Source
Expand description

Input validation — kept deliberately off the compute hot path.

Call these at the ingress boundary (CSV/DB/API → Triangle). Kernels in the rest of the crate assume validated inputs and skip defensive checks.

Enums§

MonotonicityPolicy
Policy controlling whether cumulative rows must be monotonically non-decreasing.
ValidationError
Validation failure modes for triangle inputs.

Functions§

validate_premium
Validate a premium vector: length matches origins, finite positive.
validate_triangle
Validate a triangle view: square shape, finite non-negative observed cells. Unobserved cells (i + j > n − 1) are ignored.