pub struct GroupStats {
pub group_id: u32,
pub visits: u32,
pub average_reward: f64,
pub total_arms: usize,
pub explored_arms: usize,
pub rave_visits: u32,
}Expand description
Read-only statistics for a group in crate::BanditSearch.
Fields§
§group_id: u32The group identifier.
visits: u32Number of direct visits (arms pulled from this group).
average_reward: f64Average reward across all visits.
total_arms: usizeTotal number of registered arms.
explored_arms: usizeNumber of arms that have been pulled at least once.
rave_visits: u32Number of RAVE updates from sibling groups.
Trait Implementations§
Source§impl Clone for GroupStats
impl Clone for GroupStats
Source§fn clone(&self) -> GroupStats
fn clone(&self) -> GroupStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GroupStats
impl Debug for GroupStats
Source§impl<'de> Deserialize<'de> for GroupStats
impl<'de> Deserialize<'de> for GroupStats
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 GroupStats
impl RefUnwindSafe for GroupStats
impl Send for GroupStats
impl Sync for GroupStats
impl Unpin for GroupStats
impl UnsafeUnpin for GroupStats
impl UnwindSafe for GroupStats
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