feat: added a Drift trait and a "default" ConstantDrift implementation

This commit is contained in:
2026-03-16 12:06:04 +01:00
parent 853f177fa8
commit a1f282a1c8
14 changed files with 423 additions and 127 deletions

View File

@@ -40,10 +40,10 @@ impl Gaussian {
}
}
pub(crate) fn forget(&self, gamma: f64, t: i64) -> Self {
pub(crate) fn forget(&self, variance_delta: f64) -> Self {
Self {
mu: self.mu,
sigma: (self.sigma.powi(2) + t as f64 * gamma.powi(2)).sqrt(),
sigma: (self.sigma.powi(2) + variance_delta).sqrt(),
}
}
}