Struct emcee::Guess
[−]
[src]
pub struct Guess { pub values: Vec<f64>, }
Represents an initial guess
This is the starting position for the sampling. All values are 32-bit floating point
numbers, and are contained in a Vec
.
Fields
values: Vec<f64>
A position in parameter space
Methods
impl Guess
[src]
fn new(values: &[f64]) -> Self
Create a guess from a slice
fn create_initial_guess(&self, nwalkers: usize) -> Vec<Guess>
Create a guess vector, perturbed from the starting position
Use this to generate the starting guess for the sampling, where there is one guess slightly displaced from the staring location, per walker.
fn create_initial_guess_with_rng<T: Rng>(
&self,
nwalkers: usize,
rng: &mut T
) -> Vec<Guess>
&self,
nwalkers: usize,
rng: &mut T
) -> Vec<Guess>
Create a guess vector with custom random number generator
For example, providing a random number generator that has been seeded causes re-creatable
results. The random number generator must come from the rand
crate.
fn contains_infs(&self) -> bool
Returns if the guess vector contains infinite values
fn contains_nans(&self) -> bool
Returns if the guess vector contains NaN values
Trait Implementations
impl Debug for Guess
[src]
impl Clone for Guess
[src]
fn clone(&self) -> Guess
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Index<usize> for Guess
[src]
type Output = f64
The returned type after indexing
fn index(&self, idx: usize) -> &Self::Output
The method for the indexing (container[index]
) operation