pub struct PersistenceInterval {
pub dimension: usize,
pub birth: f64,
pub death: f64,
}Expand description
A persistence interval: a topological feature that is “born” at one filtration radius and “dies” at another.
Fields§
§dimension: usizeHomology dimension (0 = component, 1 = loop).
birth: f64Birth radius: when this feature appears.
death: f64Death radius: when this feature disappears. f64::INFINITY for essential features.
Implementations§
Source§impl PersistenceInterval
impl PersistenceInterval
Sourcepub fn persistence(&self) -> f64
pub fn persistence(&self) -> f64
Persistence = death - birth. Longer-lived features are more significant.
Trait Implementations§
Source§impl Clone for PersistenceInterval
impl Clone for PersistenceInterval
Source§fn clone(&self) -> PersistenceInterval
fn clone(&self) -> PersistenceInterval
Returns a copy 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 PersistenceInterval
impl Debug for PersistenceInterval
Source§impl PartialEq for PersistenceInterval
impl PartialEq for PersistenceInterval
impl StructuralPartialEq for PersistenceInterval
Auto Trait Implementations§
impl Freeze for PersistenceInterval
impl RefUnwindSafe for PersistenceInterval
impl Send for PersistenceInterval
impl Sync for PersistenceInterval
impl Unpin for PersistenceInterval
impl UnwindSafe for PersistenceInterval
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