pub trait WorkingModel {
// Required method
fn update(
&mut self,
beta: &Coefficients,
) -> Result<WorkingState, EstimationError>;
// Provided methods
fn update_with_curvature(
&mut self,
beta: &Coefficients,
_: HessianCurvatureKind,
) -> Result<WorkingState, EstimationError> { ... }
fn update_candidate(
&mut self,
beta: &Coefficients,
curvature: HessianCurvatureKind,
) -> Result<WorkingState, EstimationError> { ... }
fn screen_candidate(
&mut self,
beta: &Coefficients,
arr: &Array1<f64>,
_: &LinearPredictor,
curvature: HessianCurvatureKind,
) -> Result<CandidateEvaluation, EstimationError> { ... }
fn supports_observed_information_curvature(&self) -> bool { ... }
}Required Methods§
fn update( &mut self, beta: &Coefficients, ) -> Result<WorkingState, EstimationError>
Provided Methods§
fn update_with_curvature( &mut self, beta: &Coefficients, _: HessianCurvatureKind, ) -> Result<WorkingState, EstimationError>
fn update_candidate( &mut self, beta: &Coefficients, curvature: HessianCurvatureKind, ) -> Result<WorkingState, EstimationError>
fn screen_candidate( &mut self, beta: &Coefficients, arr: &Array1<f64>, _: &LinearPredictor, curvature: HessianCurvatureKind, ) -> Result<CandidateEvaluation, EstimationError>
fn supports_observed_information_curvature(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".