Struct rmcmc::steppers::SRWM [−][src]
pub struct SRWM<D, T, M, L> where
D: Rv<T> + Variance<f64> + Mean<f64> + Clone,
M: Clone + 'static,
T: Debug,
L: Fn(&M) -> f64 + Sync + Clone, { pub parameter: Parameter<D, T, M>, pub log_likelihood: L, pub current_score: Option<f64>, pub temperature: f64, pub log_acceptance: f64, // some fields omitted }
Symmetric Random Walk Metropolis Stepping Algorithm
Fields
parameter: Parameter<D, T, M>
log_likelihood: L
current_score: Option<f64>
temperature: f64
log_acceptance: f64
Methods
impl<D, T, M, L> SRWM<D, T, M, L> where
D: Rv<T> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
T: Debug,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, T, M, L> SRWM<D, T, M, L> where
D: Rv<T> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
T: Debug,
L: Fn(&M) -> f64 + Sync + Clone,
pub fn new(
parameter: Parameter<D, T, M>,
log_likelihood: L,
proposal_scale: Option<f64>
) -> Self
[src]
pub fn new(
parameter: Parameter<D, T, M>,
log_likelihood: L,
proposal_scale: Option<f64>
) -> Self
Trait Implementations
impl<D, M, L> Clone for SRWM<D, f32, M, L> where
D: Rv<f32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> Clone for SRWM<D, f32, M, L> where
D: Rv<f32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<D, M, L> SteppingAlg<M> for SRWM<D, f32, M, L> where
D: Rv<f32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> SteppingAlg<M> for SRWM<D, f32, M, L> where
D: Rv<f32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn step<R: Rng>(&self, rng: &mut R, model: &mut M) -> Self
[src]
fn step<R: Rng>(&self, rng: &mut R, model: &mut M) -> Self
fn adapt_on(&self) -> Self
[src]
fn adapt_on(&self) -> Self
fn adapt_off(&self) -> Self
[src]
fn adapt_off(&self) -> Self
impl<D, M, L> AnnealingAlg<M> for SRWM<D, f32, M, L> where
D: Rv<f32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> AnnealingAlg<M> for SRWM<D, f32, M, L> where
D: Rv<f32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn set_temperature(&self, t: f64) -> Self
[src]
fn set_temperature(&self, t: f64) -> Self
impl<D, M, L> Clone for SRWM<D, f64, M, L> where
D: Rv<f64> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> Clone for SRWM<D, f64, M, L> where
D: Rv<f64> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<D, M, L> SteppingAlg<M> for SRWM<D, f64, M, L> where
D: Rv<f64> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> SteppingAlg<M> for SRWM<D, f64, M, L> where
D: Rv<f64> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn step<R: Rng>(&self, rng: &mut R, model: &mut M) -> Self
[src]
fn step<R: Rng>(&self, rng: &mut R, model: &mut M) -> Self
fn adapt_on(&self) -> Self
[src]
fn adapt_on(&self) -> Self
fn adapt_off(&self) -> Self
[src]
fn adapt_off(&self) -> Self
impl<D, M, L> AnnealingAlg<M> for SRWM<D, f64, M, L> where
D: Rv<f64> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> AnnealingAlg<M> for SRWM<D, f64, M, L> where
D: Rv<f64> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn set_temperature(&self, t: f64) -> Self
[src]
fn set_temperature(&self, t: f64) -> Self
impl<D, M, L> Clone for SRWM<D, u16, M, L> where
D: Rv<u16> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> Clone for SRWM<D, u16, M, L> where
D: Rv<u16> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<D, M, L> SteppingAlg<M> for SRWM<D, u16, M, L> where
D: Rv<u16> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> SteppingAlg<M> for SRWM<D, u16, M, L> where
D: Rv<u16> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn step<R: Rng>(&self, rng: &mut R, model: &mut M) -> Self
[src]
fn step<R: Rng>(&self, rng: &mut R, model: &mut M) -> Self
fn adapt_on(&self) -> Self
[src]
fn adapt_on(&self) -> Self
fn adapt_off(&self) -> Self
[src]
fn adapt_off(&self) -> Self
impl<D, M, L> Clone for SRWM<D, u32, M, L> where
D: Rv<u32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> Clone for SRWM<D, u32, M, L> where
D: Rv<u32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<D, M, L> SteppingAlg<M> for SRWM<D, u32, M, L> where
D: Rv<u32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,
[src]
impl<D, M, L> SteppingAlg<M> for SRWM<D, u32, M, L> where
D: Rv<u32> + Variance<f64> + Mean<f64> + Clone,
M: Clone,
L: Fn(&M) -> f64 + Sync + Clone,