pub struct TopologicalDataAnalysis {
pub point_cloud: Vec<Vec<f64>>,
}Expand description
Topological Data Analysis tools for point clouds.
Provides Vietoris–Rips and Čech complex construction, and Wasserstein distance between persistence diagrams.
Fields§
§point_cloud: Vec<Vec<f64>>Input point cloud: list of d-dimensional points.
Implementations§
Source§impl TopologicalDataAnalysis
impl TopologicalDataAnalysis
Sourcepub fn vietoris_rips(&self, epsilon: f64) -> SimplicialComplex
pub fn vietoris_rips(&self, epsilon: f64) -> SimplicialComplex
Build the Vietoris–Rips complex at scale epsilon.
An edge is added between two points whose distance is ≤ epsilon.
Higher-dimensional simplices are added as cliques.
Sourcepub fn cech_complex(&self, epsilon: f64) -> SimplicialComplex
pub fn cech_complex(&self, epsilon: f64) -> SimplicialComplex
Build the Čech complex at scale epsilon.
A k-simplex {v_0,…,v_k} is included if the minimum enclosing ball
of the k+1 points has radius ≤ epsilon.
Trait Implementations§
Source§impl Clone for TopologicalDataAnalysis
impl Clone for TopologicalDataAnalysis
Source§fn clone(&self) -> TopologicalDataAnalysis
fn clone(&self) -> TopologicalDataAnalysis
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 TopologicalDataAnalysis
impl RefUnwindSafe for TopologicalDataAnalysis
impl Send for TopologicalDataAnalysis
impl Sync for TopologicalDataAnalysis
impl Unpin for TopologicalDataAnalysis
impl UnsafeUnpin for TopologicalDataAnalysis
impl UnwindSafe for TopologicalDataAnalysis
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.