pub struct PhasePortrait { /* private fields */ }Expand description
SSM state trajectory visualizer with phase portrait, PCA projection, and attractor analysis.
Implementations§
Source§impl PhasePortrait
impl PhasePortrait
Sourcepub fn new(dim: usize, capacity: usize) -> Self
pub fn new(dim: usize, capacity: usize) -> Self
Create a new phase portrait buffer of the given dim, pre-allocated
for capacity steps.
Sourcepub fn pca_projection(&self) -> ModelResult<Array2<f32>>
pub fn pca_projection(&self) -> ModelResult<Array2<f32>>
Project trajectory onto its top-2 principal components.
Uses pure-Rust power iteration with deflation. Returns (T, 2) matrix.
Sourcepub fn divergence_estimate(&self) -> ModelResult<f32>
pub fn divergence_estimate(&self) -> ModelResult<f32>
Lyapunov-like divergence estimate: average log ratio of consecutive distances.
Returns the mean of log(d(t+1) / d(t)) where d(t) = ||state(t+1) - state(t)||.
Sourcepub fn fixed_points(&self, tolerance: f32) -> Vec<Array1<f32>> ⓘ
pub fn fixed_points(&self, tolerance: f32) -> Vec<Array1<f32>> ⓘ
Detect fixed points: states that recur within tolerance (L2).
Returns one representative state per cluster.
Sourcepub fn periodicity_score(&self) -> ModelResult<f32>
pub fn periodicity_score(&self) -> ModelResult<f32>
Estimate periodicity via the peak autocorrelation of the trajectory’s norm sequence (excluding lag-0).
Returns a value in [0, 1] where higher means more periodic.
Trait Implementations§
Source§impl Clone for PhasePortrait
impl Clone for PhasePortrait
Source§fn clone(&self) -> PhasePortrait
fn clone(&self) -> PhasePortrait
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 moreAuto Trait Implementations§
impl Freeze for PhasePortrait
impl RefUnwindSafe for PhasePortrait
impl Send for PhasePortrait
impl Sync for PhasePortrait
impl Unpin for PhasePortrait
impl UnsafeUnpin for PhasePortrait
impl UnwindSafe for PhasePortrait
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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