pub struct EvolutionStats {
pub current_cycle: u64,
pub total_events: usize,
pub successful_evolutions: usize,
pub failed_evolutions: usize,
pub average_fitness: f64,
pub max_fitness: f64,
pub min_fitness: f64,
pub selection_pressure: f64,
pub mutation_rate: f64,
}
Expand description
Evolution statistics
Fieldsยง
ยงcurrent_cycle: u64
ยงtotal_events: usize
ยงsuccessful_evolutions: usize
ยงfailed_evolutions: usize
ยงaverage_fitness: f64
ยงmax_fitness: f64
ยงmin_fitness: f64
ยงselection_pressure: f64
ยงmutation_rate: f64
Trait Implementationsยง
Sourceยงimpl Clone for EvolutionStats
impl Clone for EvolutionStats
Sourceยงfn clone(&self) -> EvolutionStats
fn clone(&self) -> EvolutionStats
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 EvolutionStats
impl Debug for EvolutionStats
Sourceยงimpl<'de> Deserialize<'de> for EvolutionStats
impl<'de> Deserialize<'de> for EvolutionStats
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 EvolutionStats
impl RefUnwindSafe for EvolutionStats
impl Send for EvolutionStats
impl Sync for EvolutionStats
impl Unpin for EvolutionStats
impl UnwindSafe for EvolutionStats
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