pub struct TopologicalFeatures {
pub betti_numbers: Vec<usize>,
pub euler_characteristic: i64,
pub simplex_counts: Vec<usize>,
pub max_dim: usize,
}Expand description
Topological feature vector derived from a SimplicialComplex.
Fields§
§betti_numbers: Vec<usize>Betti numbers β_0, β_1, …
euler_characteristic: i64Euler characteristic χ
simplex_counts: Vec<usize>Number of simplices per dimension
max_dim: usizeMaximum dimension
Implementations§
Source§impl TopologicalFeatures
impl TopologicalFeatures
Sourcepub fn from_complex(sc: &SimplicialComplex) -> Self
pub fn from_complex(sc: &SimplicialComplex) -> Self
Extract topological features from a SimplicialComplex.
Trait Implementations§
Source§impl Clone for TopologicalFeatures
impl Clone for TopologicalFeatures
Source§fn clone(&self) -> TopologicalFeatures
fn clone(&self) -> TopologicalFeatures
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 TopologicalFeatures
impl RefUnwindSafe for TopologicalFeatures
impl Send for TopologicalFeatures
impl Sync for TopologicalFeatures
impl Unpin for TopologicalFeatures
impl UnsafeUnpin for TopologicalFeatures
impl UnwindSafe for TopologicalFeatures
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more