pmcore::algorithmsTrait Algorithms
Source pub trait Algorithms<E: Equation>: Sync {
Show 24 methods
// Required methods
fn new(config: Settings, equation: E, data: Data) -> Result<Box<Self>>
where Self: Sized;
fn get_settings(&self) -> &Settings;
fn equation(&self) -> &E;
fn get_data(&self) -> &Data;
fn get_prior(&self) -> Theta;
fn inc_cycle(&mut self) -> usize;
fn get_cycle(&self) -> usize;
fn set_theta(&mut self, theta: Theta);
fn get_theta(&self) -> Θ
fn psi(&self) -> Ψ
fn likelihood(&self) -> f64;
fn convergence_evaluation(&mut self);
fn converged(&self) -> bool;
fn evaluation(&mut self) -> Result<()>;
fn condensation(&mut self) -> Result<()>;
fn optimizations(&mut self) -> Result<()>;
fn logs(&self);
fn expansion(&mut self) -> Result<()>;
fn into_npresult(&self) -> NPResult<E>;
// Provided methods
fn validate_psi(&mut self) -> Result<()> { ... }
fn n2ll(&self) -> f64 { ... }
fn initialize(&mut self) -> Result<()> { ... }
fn next_cycle(&mut self) -> Result<bool> { ... }
fn fit(&mut self) -> Result<NPResult<E>> { ... }
}