Enum net_ensembles::sampling::rewl::RewlBuilderErr [−][src]
pub enum RewlBuilderErr {
NonNormalThreshold,
Negative,
Empty,
HistBinCount,
SeedError(Error),
LenMissmatch,
}
Expand description
Errors
that can arise during the construction of RewlBuilder
Variants
- The threshold for
log_f
needs to be a normal number. - That basically means: the number is neither zero, infinite, subnormal, or NaN. For more info, see the Documentation
log_f_threshold must not be negative
Histogram vector needs to contain at least one entry.
Each histogram needs to have at least two bins. Though more than two bins are strongly recommended
SeedError(Error)
Unable to seed random number generator
Tuple Fields of SeedError
0: Error
Length of histogram vector and ensemble vector has to be the same!
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RewlBuilderErr
impl Send for RewlBuilderErr
impl Sync for RewlBuilderErr
impl Unpin for RewlBuilderErr
impl !UnwindSafe for RewlBuilderErr
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more