pub struct PersistentClassProvenance { /* private fields */ }Expand description
Source binding for one interval-bound H1 class.
The source digest covers the active labeled graph at the representative
scale. The class digest is the canonical BasisClassId bytes. Derived
class spaces can omit this binding when their source graph is not the
scalar Rips input.
Implementations§
Source§impl PersistentClassProvenance
impl PersistentClassProvenance
Sourcepub fn source_graph_digest(&self) -> &[u8; 32]
pub fn source_graph_digest(&self) -> &[u8; 32]
Raw digest of the active labeled graph at the representative scale.
Sourcepub fn class_digest(&self) -> &[u8; 32]
pub fn class_digest(&self) -> &[u8; 32]
Deterministic digest of the canonical class identity.
Source§impl PersistentClassProvenance
impl PersistentClassProvenance
Sourcepub fn from_parts(
source_graph_digest: [u8; 32],
class_digest: [u8; 32],
interval: Bar,
modulus: u32,
scale: f64,
) -> Self
pub fn from_parts( source_graph_digest: [u8; 32], class_digest: [u8; 32], interval: Bar, modulus: u32, scale: f64, ) -> Self
Construct a provenance record from previously recorded digests.
class_digest must be the canonical crate::BasisClassId bytes for the
class that uses this record.
Sourcepub fn validate(
&self,
graph: &SparseDistanceMatrix,
class_digest: [u8; 32],
interval: Bar,
cocycle: &Cocycle,
) -> Result<()>
pub fn validate( &self, graph: &SparseDistanceMatrix, class_digest: [u8; 32], interval: Bar, cocycle: &Cocycle, ) -> Result<()>
Check the class identity, interval, and representative against a graph.
The class digest must equal the canonical crate::BasisClassId bytes for
the supplied cocycle.
Trait Implementations§
Source§impl Clone for PersistentClassProvenance
impl Clone for PersistentClassProvenance
Source§fn clone(&self) -> PersistentClassProvenance
fn clone(&self) -> PersistentClassProvenance
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 moreimpl Copy for PersistentClassProvenance
Source§impl Debug for PersistentClassProvenance
impl Debug for PersistentClassProvenance
impl StructuralPartialEq for PersistentClassProvenance
Auto Trait Implementations§
impl Freeze for PersistentClassProvenance
impl RefUnwindSafe for PersistentClassProvenance
impl Send for PersistentClassProvenance
impl Sync for PersistentClassProvenance
impl Unpin for PersistentClassProvenance
impl UnsafeUnpin for PersistentClassProvenance
impl UnwindSafe for PersistentClassProvenance
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