pub struct BayesianGpdEstimator { /* private fields */ }Expand description
Bayesian GPD estimator for rare-event tail latency modeling.
Uses Peaks Over Threshold (POT) method with Bayesian parameter estimation. Provides credible intervals for extreme quantiles like P99.9, P99.99.
Implementations§
Source§impl BayesianGpdEstimator
impl BayesianGpdEstimator
Sourcepub fn with_prior(prior: GpdPrior) -> Self
pub fn with_prior(prior: GpdPrior) -> Self
Create an estimator with custom prior.
Sourcepub fn observe(&mut self, values: &[f64], threshold: f64)
pub fn observe(&mut self, values: &[f64], threshold: f64)
Set the threshold and record observations.
Values above threshold are recorded as exceedances.
Sourcepub fn posterior_parameters(&self) -> Option<GpdParameters>
pub fn posterior_parameters(&self) -> Option<GpdParameters>
Get the posterior mean GPD parameters.
Sourcepub fn estimate_quantile(
&self,
p: f64,
credibility: f64,
) -> Option<GpdQuantileEstimate>
pub fn estimate_quantile( &self, p: f64, credibility: f64, ) -> Option<GpdQuantileEstimate>
Estimate an extreme quantile with credible interval.
Returns (point estimate, lower bound, upper bound) at given credibility level.
Sourcepub fn exceedance_probability(&self, value: f64) -> Option<f64>
pub fn exceedance_probability(&self, value: f64) -> Option<f64>
Estimate the probability of exceeding a given value.
Sourcepub fn n_exceedances(&self) -> usize
pub fn n_exceedances(&self) -> usize
Get the number of exceedances.
Trait Implementations§
Source§impl Clone for BayesianGpdEstimator
impl Clone for BayesianGpdEstimator
Source§fn clone(&self) -> BayesianGpdEstimator
fn clone(&self) -> BayesianGpdEstimator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BayesianGpdEstimator
impl Debug for BayesianGpdEstimator
Auto Trait Implementations§
impl Freeze for BayesianGpdEstimator
impl RefUnwindSafe for BayesianGpdEstimator
impl Send for BayesianGpdEstimator
impl Sync for BayesianGpdEstimator
impl Unpin for BayesianGpdEstimator
impl UnsafeUnpin for BayesianGpdEstimator
impl UnwindSafe for BayesianGpdEstimator
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