pub struct DevelopmentFactorEngine;Expand description
Section 2 development-factor service.
Implementations§
Source§impl DevelopmentFactorEngine
impl DevelopmentFactorEngine
Sourcepub fn volume_weighted(
tri: &TriangleView<'_>,
tail: f64,
) -> Result<DevelopmentFactors, ValidationError>
pub fn volume_weighted( tri: &TriangleView<'_>, tail: f64, ) -> Result<DevelopmentFactors, ValidationError>
Select volume-weighted factors and CDFs from a validated cumulative triangle.
Sourcepub fn volume_weighted_with_policy(
tri: &TriangleView<'_>,
tail: f64,
policy: MonotonicityPolicy,
) -> Result<DevelopmentFactors, ValidationError>
pub fn volume_weighted_with_policy( tri: &TriangleView<'_>, tail: f64, policy: MonotonicityPolicy, ) -> Result<DevelopmentFactors, ValidationError>
Select volume-weighted factors and CDFs under an explicit MonotonicityPolicy.
Sourcepub fn simple_average(
tri: &TriangleView<'_>,
tail: f64,
) -> Result<DevelopmentFactors, ValidationError>
pub fn simple_average( tri: &TriangleView<'_>, tail: f64, ) -> Result<DevelopmentFactors, ValidationError>
Select simple-average factors and CDFs from a validated cumulative triangle.
Sourcepub fn median(
tri: &TriangleView<'_>,
tail: f64,
) -> Result<DevelopmentFactors, ValidationError>
pub fn median( tri: &TriangleView<'_>, tail: f64, ) -> Result<DevelopmentFactors, ValidationError>
Select median factors and CDFs from a validated cumulative triangle.
Sourcepub fn ex_hi_lo(
tri: &TriangleView<'_>,
tail: f64,
) -> Result<DevelopmentFactors, ValidationError>
pub fn ex_hi_lo( tri: &TriangleView<'_>, tail: f64, ) -> Result<DevelopmentFactors, ValidationError>
Select ex-hi-lo factors and CDFs from a validated cumulative triangle.
Sourcepub fn volume_weighted_last_n(
tri: &TriangleView<'_>,
tail: f64,
last_n: usize,
) -> Result<DevelopmentFactors, ValidationError>
pub fn volume_weighted_last_n( tri: &TriangleView<'_>, tail: f64, last_n: usize, ) -> Result<DevelopmentFactors, ValidationError>
Select volume-weighted last-N factors and CDFs from a validated cumulative triangle.
Sourcepub fn simple_average_last_n(
tri: &TriangleView<'_>,
tail: f64,
last_n: usize,
) -> Result<DevelopmentFactors, ValidationError>
pub fn simple_average_last_n( tri: &TriangleView<'_>, tail: f64, last_n: usize, ) -> Result<DevelopmentFactors, ValidationError>
Select simple-average last-N factors and CDFs from a validated cumulative triangle.
Sourcepub fn geometric_average(
tri: &TriangleView<'_>,
tail: f64,
) -> Result<DevelopmentFactors, ValidationError>
pub fn geometric_average( tri: &TriangleView<'_>, tail: f64, ) -> Result<DevelopmentFactors, ValidationError>
Select geometric-average factors and CDFs from a validated cumulative triangle.
Sourcepub fn volume_weighted_masked(
tri: &TriangleView<'_>,
weights: &[f64],
tail: f64,
policy: MonotonicityPolicy,
) -> Result<DevelopmentFactors, ValidationError>
pub fn volume_weighted_masked( tri: &TriangleView<'_>, weights: &[f64], tail: f64, policy: MonotonicityPolicy, ) -> Result<DevelopmentFactors, ValidationError>
Select volume-weighted factors with a per-cell weight / outlier-exclusion
mask (weights[i * n_devs + j] == 0.0 excludes the link j -> j+1 for
origin i).
Sourcepub fn volume_weighted_diagnostics(
tri: &TriangleView<'_>,
tail: f64,
) -> Result<Vec<LinkRatioDiagnostic>, ValidationError>
pub fn volume_weighted_diagnostics( tri: &TriangleView<'_>, tail: f64, ) -> Result<Vec<LinkRatioDiagnostic>, ValidationError>
Diagnostics for volume-weighted link selections.