pub struct Brosius {
pub intercept: Vec<f64>,
pub slope: Vec<f64>,
pub ultimate: Vec<f64>,
pub reserve: Vec<f64>,
pub latest: Vec<f64>,
pub diagnostics: Vec<BrosiusLinkDiagnostic>,
}Expand description
Brosius projection result.
Fields§
§intercept: Vec<f64>Intercept per link: a_j, length n − 1.
slope: Vec<f64>Slope per link: b_j, length n − 1.
ultimate: Vec<f64>Estimated ultimate per origin.
reserve: Vec<f64>Unpaid reserve per origin.
latest: Vec<f64>Latest observed cumulative value per origin.
diagnostics: Vec<BrosiusLinkDiagnostic>OLS fit diagnostics per development link.
Implementations§
Source§impl Brosius
impl Brosius
Sourcepub fn credibility_weights(&self) -> Vec<f64>
pub fn credibility_weights(&self) -> Vec<f64>
Credibility weight Z_j = b_j * mean_x / mean_y per link (Brosius 1993).
Expresses the OLS predictor a_j + b_j * x in credibility form
Z_j * (f_j * x) + (1 - Z_j) * mean_y where f_j = mean_y / mean_x
is the volume-weighted link ratio.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Brosius
impl<'de> Deserialize<'de> for Brosius
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
Auto Trait Implementations§
impl Forget for Brosius
impl Freeze for Brosius
impl Move for Brosius
impl RefUnwindSafe for Brosius
impl Send for Brosius
impl Sync for Brosius
impl Unpin for Brosius
impl UnsafeUnpin for Brosius
impl UnwindSafe for Brosius
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