pub struct TemporalAttractor { /* private fields */ }Expand description
Temporal strange attractor implementation
Implementations§
Source§impl TemporalAttractor
impl TemporalAttractor
Sourcepub fn new(config: AttractorConfig) -> Result<Self>
pub fn new(config: AttractorConfig) -> Result<Self>
Create a new temporal attractor
Sourcepub fn with_initial_state(
config: AttractorConfig,
initial_state: Vector3D,
) -> Result<Self>
pub fn with_initial_state( config: AttractorConfig, initial_state: Vector3D, ) -> Result<Self>
Create with custom initial state
Sourcepub fn trajectory(&self) -> &[Vector3D]
pub fn trajectory(&self) -> &[Vector3D]
Get trajectory history
Sourcepub fn set_max_trajectory_length(&mut self, length: usize)
pub fn set_max_trajectory_length(&mut self, length: usize)
Set maximum trajectory length
Sourcepub fn step_multiple(&mut self, steps: usize) -> Result<Vec<Vector3D>>
pub fn step_multiple(&mut self, steps: usize) -> Result<Vec<Vector3D>>
Perform multiple steps efficiently
Sourcepub fn correlation_dimension(&self, embedding_dim: usize) -> f64
pub fn correlation_dimension(&self, embedding_dim: usize) -> f64
Calculate the attractor’s correlation dimension
Sourcepub fn phase_space_volume(&self) -> f64
pub fn phase_space_volume(&self) -> f64
Get the phase space volume
Sourcepub fn temporal_correlation(&self, lag: usize) -> f64
pub fn temporal_correlation(&self, lag: usize) -> f64
Calculate temporal correlation
Sourcepub fn reset_with_state(&mut self, initial_state: Vector3D)
pub fn reset_with_state(&mut self, initial_state: Vector3D)
Reset with custom initial state
Sourcepub fn perturb(&mut self, perturbation: Vector3D)
pub fn perturb(&mut self, perturbation: Vector3D)
Create a perturbation for sensitivity analysis
Sourcepub fn config(&self) -> &AttractorConfig
pub fn config(&self) -> &AttractorConfig
Get configuration
Sourcepub fn update_config(&mut self, config: AttractorConfig) -> Result<()>
pub fn update_config(&mut self, config: AttractorConfig) -> Result<()>
Update configuration
Auto Trait Implementations§
impl Freeze for TemporalAttractor
impl RefUnwindSafe for TemporalAttractor
impl Send for TemporalAttractor
impl Sync for TemporalAttractor
impl Unpin for TemporalAttractor
impl UnwindSafe for TemporalAttractor
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> 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.