pub struct BottleneckDistance;Expand description
Bottleneck distance between persistence diagrams
d_∞(D1, D2) = inf_γ sup_p ||p - γ(p)||_∞
where γ ranges over bijections between diagrams (with diagonal).
Implementations§
Source§impl BottleneckDistance
impl BottleneckDistance
Sourcepub fn compute(
d1: &PersistenceDiagram,
d2: &PersistenceDiagram,
dim: usize,
) -> f64
pub fn compute( d1: &PersistenceDiagram, d2: &PersistenceDiagram, dim: usize, ) -> f64
Compute bottleneck distance for dimension d
Trait Implementations§
Source§impl Clone for BottleneckDistance
impl Clone for BottleneckDistance
Source§fn clone(&self) -> BottleneckDistance
fn clone(&self) -> BottleneckDistance
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 BottleneckDistance
impl RefUnwindSafe for BottleneckDistance
impl Send for BottleneckDistance
impl Sync for BottleneckDistance
impl Unpin for BottleneckDistance
impl UnwindSafe for BottleneckDistance
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