pub struct RecourseStats {
pub total_recourse: u64,
pub num_updates: u64,
pub max_single_recourse: u64,
pub recourse_per_level: Vec<u64>,
pub avg_update_time_us: f64,
pub theoretical_bound: f64,
}Expand description
Statistics for recourse tracking
Fields§
§total_recourse: u64Total recourse across all updates
num_updates: u64Number of updates processed
max_single_recourse: u64Maximum recourse in a single update
recourse_per_level: Vec<u64>Recourse per level
avg_update_time_us: f64Average update time in microseconds
theoretical_bound: f64Theoretical subpolynomial bound (computed)
Implementations§
Source§impl RecourseStats
impl RecourseStats
Sourcepub fn is_subpolynomial(&self, n: usize) -> bool
pub fn is_subpolynomial(&self, n: usize) -> bool
Check if recourse is within subpolynomial bounds
Sourcepub fn amortized_recourse(&self) -> f64
pub fn amortized_recourse(&self) -> f64
Get amortized recourse per update
Trait Implementations§
Source§impl Clone for RecourseStats
impl Clone for RecourseStats
Source§fn clone(&self) -> RecourseStats
fn clone(&self) -> RecourseStats
Returns a duplicate 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 RecourseStats
impl Debug for RecourseStats
Source§impl Default for RecourseStats
impl Default for RecourseStats
Source§fn default() -> RecourseStats
fn default() -> RecourseStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecourseStats
impl RefUnwindSafe for RecourseStats
impl Send for RecourseStats
impl Sync for RecourseStats
impl Unpin for RecourseStats
impl UnwindSafe for RecourseStats
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