pub trait TwoStatParam {
type Mat;
type Scalar;
// Required methods
fn new(dims: (usize, usize), a0: Self::Scalar, b0: Self::Scalar) -> Self;
fn add_stat(&mut self, add_a: &Self::Mat, add_b: &Self::Mat);
fn update_stat(&mut self, update_a: &Self::Mat, update_b: &Self::Mat);
fn update_stat_col(
&mut self,
update_a: &Self::Mat,
update_b: &Self::Mat,
k: usize,
);
fn reset_stat(&mut self);
fn map_calibrate_mean(&mut self);
fn map_calibrate_sd(&mut self);
fn map_calibrate_log_mean(&mut self);
fn map_calibrate_log_sd(&mut self);
// Provided methods
fn calibrate(&mut self) { ... }
fn calibrate_with(&mut self, target: CalibrateTarget) { ... }
}Expand description
A parameter matrix with two types of statistics with hyper parameters a0 and b0
Required Associated Types§
Required Methods§
fn new(dims: (usize, usize), a0: Self::Scalar, b0: Self::Scalar) -> Self
fn add_stat(&mut self, add_a: &Self::Mat, add_b: &Self::Mat)
fn update_stat(&mut self, update_a: &Self::Mat, update_b: &Self::Mat)
fn update_stat_col( &mut self, update_a: &Self::Mat, update_b: &Self::Mat, k: usize, )
fn reset_stat(&mut self)
fn map_calibrate_mean(&mut self)
fn map_calibrate_sd(&mut self)
fn map_calibrate_log_mean(&mut self)
fn map_calibrate_log_sd(&mut self)
Provided Methods§
Sourcefn calibrate_with(&mut self, target: CalibrateTarget)
fn calibrate_with(&mut self, target: CalibrateTarget)
Calibrate only the posterior quantities specified by target.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".