pub enum EntropicErrors {
InvalidWangLandau,
NotEnoughStatistics,
EstimatedStatistic(Vec<f64>),
InvalidMinMaxTrialSteps,
InvalidLogDensity,
InvalidBestof,
}
Expand description
Error states, that entropic sampling, or the creation of EntropicSamplingAdaptive
could encounter
Variants§
InvalidWangLandau
§source (WangLandauAdaptive
) was in an invalid state
- did you forget to use one of the
init*
methods to initialize a valid WangLandau state?
NotEnoughStatistics
Still in the process of gathering statistics Not enough to make an estimate
EstimatedStatistic(Vec<f64>)
Still Gathering Statistics, this is only an estimate!
InvalidMinMaxTrialSteps
Invalid trial step. Is your max_step smaller than your min_step?
InvalidLogDensity
§Possible reasons
log_density.len()
andhistogram.bin_count()
are not equal- not all values of
log_density
are finite
InvalidBestof
You are trying to have a min_best_of_count
that is
larger than the total steps you try!
Trait Implementations§
Source§impl Clone for EntropicErrors
impl Clone for EntropicErrors
Source§fn clone(&self) -> EntropicErrors
fn clone(&self) -> EntropicErrors
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntropicErrors
impl Debug for EntropicErrors
Source§impl<'de> Deserialize<'de> for EntropicErrors
impl<'de> Deserialize<'de> for EntropicErrors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EntropicErrors
impl RefUnwindSafe for EntropicErrors
impl Send for EntropicErrors
impl Sync for EntropicErrors
impl Unpin for EntropicErrors
impl UnwindSafe for EntropicErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more