pub struct ExponentialDegradationModel { /* private fields */ }Expand description
Exponential degradation: health(t) = A · exp(−λ·t).
Fitted by log-linearizing: ln(health) = ln(A) − λ·t.
Implementations§
Trait Implementations§
Source§impl Debug for ExponentialDegradationModel
impl Debug for ExponentialDegradationModel
Source§impl Default for ExponentialDegradationModel
impl Default for ExponentialDegradationModel
Source§fn default() -> ExponentialDegradationModel
fn default() -> ExponentialDegradationModel
Returns the “default value” for a type. Read more
Source§impl DegradationModel for ExponentialDegradationModel
impl DegradationModel for ExponentialDegradationModel
Source§fn fit(&mut self, times: &[f64], health_scores: &[f64]) -> PhysicsResult<()>
fn fit(&mut self, times: &[f64], health_scores: &[f64]) -> PhysicsResult<()>
Fit the model to the given time-series of health scores. Read more
Source§fn predict_rul(
&self,
current_time: f64,
failure_threshold: f64,
) -> PhysicsResult<RulEstimate>
fn predict_rul( &self, current_time: f64, failure_threshold: f64, ) -> PhysicsResult<RulEstimate>
Predict the time at which health will reach
failure_threshold.Auto Trait Implementations§
impl Freeze for ExponentialDegradationModel
impl RefUnwindSafe for ExponentialDegradationModel
impl Send for ExponentialDegradationModel
impl Sync for ExponentialDegradationModel
impl Unpin for ExponentialDegradationModel
impl UnsafeUnpin for ExponentialDegradationModel
impl UnwindSafe for ExponentialDegradationModel
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more