pub struct BirthDeathPair {
pub dimension: usize,
pub birth: f64,
pub death: Option<f64>,
}Expand description
Birth-death pair in persistence diagram
Fields§
§dimension: usizeDimension of the feature (0 = component, 1 = loop, …)
birth: f64Birth time
death: Option<f64>Death time (None = essential, lives forever)
Implementations§
Source§impl BirthDeathPair
impl BirthDeathPair
Sourcepub fn persistence(&self) -> f64
pub fn persistence(&self) -> f64
Persistence (lifetime) of feature
Sourcepub fn is_essential(&self) -> bool
pub fn is_essential(&self) -> bool
Is this an essential feature (never dies)?
Trait Implementations§
Source§impl Clone for BirthDeathPair
impl Clone for BirthDeathPair
Source§fn clone(&self) -> BirthDeathPair
fn clone(&self) -> BirthDeathPair
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 BirthDeathPair
impl Debug for BirthDeathPair
Source§impl PartialEq for BirthDeathPair
impl PartialEq for BirthDeathPair
impl StructuralPartialEq for BirthDeathPair
Auto Trait Implementations§
impl Freeze for BirthDeathPair
impl RefUnwindSafe for BirthDeathPair
impl Send for BirthDeathPair
impl Sync for BirthDeathPair
impl Unpin for BirthDeathPair
impl UnwindSafe for BirthDeathPair
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