pub struct PersistentHomologyComputer {
pub filtration: Vec<(f64, usize)>,
}Expand description
Computes persistent homology from a filtered simplicial complex.
Implements the standard persistence algorithm (Edelsbrunner-Letscher-Zomorodian).
Fields§
§filtration: Vec<(f64, usize)>Simplices in filtration order: (filtration_value, dimension).
Implementations§
Source§impl PersistentHomologyComputer
impl PersistentHomologyComputer
Sourcepub fn add_simplex(&mut self, filtration_value: f64, dimension: usize)
pub fn add_simplex(&mut self, filtration_value: f64, dimension: usize)
Add a simplex to the filtration.
Sourcepub fn compute_barcode(&self) -> PersistenceBarcode
pub fn compute_barcode(&self) -> PersistenceBarcode
Compute the barcode using the standard persistence algorithm.
This simplified version tracks when each homology class is born and dies based on simplex dimension parity (illustrative model).
Trait Implementations§
Source§impl Clone for PersistentHomologyComputer
impl Clone for PersistentHomologyComputer
Source§fn clone(&self) -> PersistentHomologyComputer
fn clone(&self) -> PersistentHomologyComputer
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 PersistentHomologyComputer
impl Debug for PersistentHomologyComputer
Source§impl Default for PersistentHomologyComputer
impl Default for PersistentHomologyComputer
Source§fn default() -> PersistentHomologyComputer
fn default() -> PersistentHomologyComputer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PersistentHomologyComputer
impl RefUnwindSafe for PersistentHomologyComputer
impl Send for PersistentHomologyComputer
impl Sync for PersistentHomologyComputer
impl Unpin for PersistentHomologyComputer
impl UnsafeUnpin for PersistentHomologyComputer
impl UnwindSafe for PersistentHomologyComputer
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