pub enum ABCError {
EmptyInitialPopulation {
tolerance: f64,
attempts: usize,
},
StageExhausted {
tolerance: f64,
accepted: usize,
requested: usize,
attempts: usize,
},
}Expand description
Errors that can occur during a bounded ABC-SMC run (finding FG-34).
Variants§
EmptyInitialPopulation
The initial rejection round accepted zero particles within its attempt
budget, so there is nothing to perturb. Previously this panicked in
rng.gen_range(0..0).
Fields
StageExhausted
A tolerance stage could not be filled within its attempt budget. Previously the inner loop had no cap and could spin forever.
Trait Implementations§
Source§impl Error for ABCError
impl Error for ABCError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ABCError
Auto Trait Implementations§
impl Freeze for ABCError
impl RefUnwindSafe for ABCError
impl Send for ABCError
impl Sync for ABCError
impl Unpin for ABCError
impl UnsafeUnpin for ABCError
impl UnwindSafe for ABCError
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