pub struct ConsciousnessMetrics {
pub current_state: ConsciousnessState,
pub history: Vec<ConsciousnessState>,
pub max_phi: f64,
pub emergence_events: Vec<EmergenceEvent>,
pub self_modifications: Vec<SelfModification>,
pub average_consciousness: f64,
pub peak_consciousness: f64,
}Expand description
Consciousness metrics and measurements
Fields§
§current_state: ConsciousnessStateCurrent state
history: Vec<ConsciousnessState>Historical states
max_phi: f64Maximum recorded Φ value
emergence_events: Vec<EmergenceEvent>Consciousness emergence events
self_modifications: Vec<SelfModification>Self-modification instances
average_consciousness: f64Average consciousness level over time
peak_consciousness: f64Peak consciousness level
Implementations§
Source§impl ConsciousnessMetrics
impl ConsciousnessMetrics
Sourcepub fn update_state(&mut self, state: ConsciousnessState)
pub fn update_state(&mut self, state: ConsciousnessState)
Update metrics with new consciousness state
Sourcepub fn calculate_phi(
&mut self,
num_elements: usize,
num_connections: usize,
coupling_strength: f64,
) -> f64
pub fn calculate_phi( &mut self, num_elements: usize, num_connections: usize, coupling_strength: f64, ) -> f64
Calculate Φ (integrated information) using simplified IIT
Sourcepub fn detect_emergence(&mut self, threshold: f64) -> bool
pub fn detect_emergence(&mut self, threshold: f64) -> bool
Detect consciousness emergence
Sourcepub fn record_self_modification(
&mut self,
modification_type: String,
description: String,
)
pub fn record_self_modification( &mut self, modification_type: String, description: String, )
Record self-modification event
Sourcepub fn get_trends(&self, window_size: usize) -> ConsciousnessTrends
pub fn get_trends(&self, window_size: usize) -> ConsciousnessTrends
Get consciousness trends
Sourcepub fn get_statistics(&self) -> ConsciousnessStatistics
pub fn get_statistics(&self) -> ConsciousnessStatistics
Get consciousness statistics
Trait Implementations§
Source§impl Clone for ConsciousnessMetrics
impl Clone for ConsciousnessMetrics
Source§fn clone(&self) -> ConsciousnessMetrics
fn clone(&self) -> ConsciousnessMetrics
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 ConsciousnessMetrics
impl Debug for ConsciousnessMetrics
Source§impl Default for ConsciousnessMetrics
impl Default for ConsciousnessMetrics
Source§impl<'de> Deserialize<'de> for ConsciousnessMetrics
impl<'de> Deserialize<'de> for ConsciousnessMetrics
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 ConsciousnessMetrics
impl RefUnwindSafe for ConsciousnessMetrics
impl Send for ConsciousnessMetrics
impl Sync for ConsciousnessMetrics
impl Unpin for ConsciousnessMetrics
impl UnwindSafe for ConsciousnessMetrics
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> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.