pub struct MackOptions {
pub tail_spec: MackTailSpec,
pub alpha: f64,
pub policy: MonotonicityPolicy,
pub weights: Option<Vec<f64>>,
}Expand description
Configuration for generalized Mack chain-ladder analysis with custom
weighting exponent alpha (Murphy 1994; mages/ChainLadder) and optional
per-cell outlier/exclusion weights.
Fields§
§tail_spec: MackTailSpecTail factor and optional Mack (1999) tail variance specification.
alpha: f64Variance weighting exponent $\alpha$:
1.0(default): classical volume-weighted chain ladder (Mack 1993)0.0: OLS regression through the origin2.0: unweighted simple average of individual link ratios
policy: MonotonicityPolicyMonotonicity validation policy for the cumulative input triangle.
weights: Option<Vec<f64>>Optional row-major cell weight mask of length n_origins * n_devs
(0.0 excludes a link from LDF and $\hat{\sigma}_k^2$ estimation;
positive values scale the cell’s weight).
Implementations§
Source§impl MackOptions
impl MackOptions
Sourcepub fn with_alpha(self, alpha: f64) -> Self
pub fn with_alpha(self, alpha: f64) -> Self
Set the variance weighting exponent $\alpha$ (0.0, 1.0, or 2.0).
Sourcepub fn with_tail_spec(self, tail_spec: MackTailSpec) -> Self
pub fn with_tail_spec(self, tail_spec: MackTailSpec) -> Self
Set the tail specification.
Sourcepub fn with_policy(self, policy: MonotonicityPolicy) -> Self
pub fn with_policy(self, policy: MonotonicityPolicy) -> Self
Set the monotonicity validation policy.
Sourcepub fn with_weights(self, weights: Vec<f64>) -> Self
pub fn with_weights(self, weights: Vec<f64>) -> Self
Set a row-major cell weight / outlier-exclusion mask.
Trait Implementations§
Source§impl Clone for MackOptions
impl Clone for MackOptions
Source§impl Debug for MackOptions
impl Debug for MackOptions
Source§impl Default for MackOptions
impl Default for MackOptions
Source§impl<'de> Deserialize<'de> for MackOptions
impl<'de> Deserialize<'de> for MackOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MackOptions
impl PartialEq for MackOptions
Source§impl Serialize for MackOptions
impl Serialize for MackOptions
impl StructuralPartialEq for MackOptions
Auto Trait Implementations§
impl Forget for MackOptions
impl Freeze for MackOptions
impl Move for MackOptions
impl RefUnwindSafe for MackOptions
impl Send for MackOptions
impl Sync for MackOptions
impl Unpin for MackOptions
impl UnsafeUnpin for MackOptions
impl UnwindSafe for MackOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more