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
Posible 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 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
§impl<S, T> Cast<T> for Swhere
T: Conv<S>,
impl<S, T> Cast<T> for Swhere
T: Conv<S>,
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
§fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
§fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
§fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
§fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more