pub struct TrajectoryStats {
pub count: u64,
pub mean_improvement: f32,
pub variance: f32,
pub best_improvement: f32,
pub success_rate: f32,
pub best_attention: u8,
}Expand description
Statistics for a collection of trajectories
Fields§
§count: u64Total trajectory count
mean_improvement: f32Mean improvement ratio
variance: f32Variance of improvement
best_improvement: f32Best improvement seen
success_rate: f32Success rate (positive improvement)
best_attention: u8Most common attention type
Implementations§
Source§impl TrajectoryStats
impl TrajectoryStats
Sourcepub fn update(&mut self, trajectory: &Trajectory)
pub fn update(&mut self, trajectory: &Trajectory)
Update stats with a new trajectory
Sourcepub fn final_variance(&self) -> f32
pub fn final_variance(&self) -> f32
Get variance (finalized)
Trait Implementations§
Source§impl Clone for TrajectoryStats
impl Clone for TrajectoryStats
Auto Trait Implementations§
impl Freeze for TrajectoryStats
impl RefUnwindSafe for TrajectoryStats
impl Send for TrajectoryStats
impl Sync for TrajectoryStats
impl Unpin for TrajectoryStats
impl UnsafeUnpin for TrajectoryStats
impl UnwindSafe for TrajectoryStats
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