Skip to main content

OdpFit

Struct OdpFit 

Source
pub struct OdpFit {
Show 20 fields pub n_origins: usize, pub n_devs: usize, pub ldfs: Vec<f64>, pub tail: f64, pub fitted_cumulative: Vec<f64>, pub fitted_incremental: Vec<f64>, pub observed_incremental: Vec<f64>, pub residuals: Vec<OdpCellResidual>, pub n_observed: usize, pub rank: usize, pub degrees_of_freedom: usize, pub dispersion: f64, pub origin_reserves: Vec<f64>, pub total_reserve: f64, pub analytic_origin_process_se: Vec<f64>, pub analytic_origin_param_se: Vec<f64>, pub analytic_origin_prediction_error: Vec<f64>, pub analytic_total_process_se: f64, pub analytic_total_param_se: f64, pub analytic_total_prediction_error: f64,
}
Expand description

Immutable ODP GLM fit, dispersion, leverages, and analytic prediction errors.

Fields§

§n_origins: usize

Number of origin rows.

§n_devs: usize

Number of development columns.

§ldfs: Vec<f64>

Volume-weighted chain-ladder LDFs (length n - 1).

§tail: f64

Multiplicative tail factor (>= 1.0).

§fitted_cumulative: Vec<f64>

Full n × n fitted cumulative grid (row-major; observed region by backward recursion, future region by chain-ladder projection).

§fitted_incremental: Vec<f64>

Full n × n fitted incremental grid (row-major).

§observed_incremental: Vec<f64>

Observed n × n incremental grid (NaN in unobserved lower-right).

§residuals: Vec<OdpCellResidual>

Residual and leverage diagnostics for every active observed cell.

§n_observed: usize

Count of active observed cells entering the ODP fit (N).

§rank: usize

Effective parameter rank of the ODP design matrix (p = 2n - 1 for full triangles).

§degrees_of_freedom: usize

Residual degrees of freedom (N - p).

§dispersion: f64

Pearson dispersion parameter φ = sum(r^2) / (N - p).

§origin_reserves: Vec<f64>

Point-estimate reserves by origin (including tail when tail > 1).

§total_reserve: f64

Aggregate point-estimate reserve.

§analytic_origin_process_se: Vec<f64>

Analytic ODP process standard error by origin (pre-tail).

§analytic_origin_param_se: Vec<f64>

Analytic ODP parameter estimation standard error by origin (pre-tail).

§analytic_origin_prediction_error: Vec<f64>

Analytic ODP total prediction error by origin (England & Verrall 1999, Table 2).

§analytic_total_process_se: f64

Analytic ODP aggregate process standard error sqrt(φ · R).

§analytic_total_param_se: f64

Analytic ODP aggregate parameter estimation standard error.

§analytic_total_prediction_error: f64

Analytic ODP aggregate prediction error (England & Verrall 1999, 2002).

Trait Implementations§

Source§

impl Clone for OdpFit

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OdpFit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OdpFit

Source§

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 OdpFit

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for OdpFit

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OdpFit

Auto Trait Implementations§

§

impl Forget for OdpFit

§

impl Freeze for OdpFit

§

impl Move for OdpFit

§

impl RefUnwindSafe for OdpFit

§

impl Send for OdpFit

§

impl Sync for OdpFit

§

impl Unpin for OdpFit

§

impl UnsafeUnpin for OdpFit

§

impl UnwindSafe for OdpFit

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.