pub struct BarcodeStatistics {
pub total_persistence: f64,
pub mean_persistence: f64,
pub median_persistence: f64,
pub max_persistence: f64,
pub n_finite: usize,
pub n_essential: usize,
pub bottleneck_to_empty: f64,
}Expand description
Summary statistics computed from a persistence barcode.
Fields§
§total_persistence: f64Sum of finite bar lengths.
mean_persistence: f64Mean finite bar length.
median_persistence: f64Median finite bar length.
max_persistence: f64Maximum finite bar length.
n_finite: usizeNumber of finite bars.
n_essential: usizeNumber of essential (infinite) classes.
bottleneck_to_empty: f64Bottleneck distance approximation to the empty diagram.
Equals the half-persistence of the most persistent finite bar.
Implementations§
Source§impl BarcodeStatistics
impl BarcodeStatistics
Sourcepub fn from_diagram(diagram: &PersistenceDiagram) -> Self
pub fn from_diagram(diagram: &PersistenceDiagram) -> Self
Compute statistics from a PersistenceDiagram.
Sourcepub fn bottleneck_distance(
a: &PersistenceDiagram,
b: &PersistenceDiagram,
) -> f64
pub fn bottleneck_distance( a: &PersistenceDiagram, b: &PersistenceDiagram, ) -> f64
Approximate bottleneck distance between two diagrams.
Uses greedy matching by L∞ distance in birth-persistence coordinates.
Trait Implementations§
Source§impl Clone for BarcodeStatistics
impl Clone for BarcodeStatistics
Source§fn clone(&self) -> BarcodeStatistics
fn clone(&self) -> BarcodeStatistics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BarcodeStatistics
impl RefUnwindSafe for BarcodeStatistics
impl Send for BarcodeStatistics
impl Sync for BarcodeStatistics
impl Unpin for BarcodeStatistics
impl UnsafeUnpin for BarcodeStatistics
impl UnwindSafe for BarcodeStatistics
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<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.