pub struct SignatureExtractor { /* private fields */ }Expand description
Incremental truncated signature extractor.
Maintains the running signature of a d-dimensional discrete path, updated incrementally via Chen’s identity.
Implementations§
Source§impl SignatureExtractor
impl SignatureExtractor
Sourcepub fn new(dim: usize, max_depth: usize) -> Self
pub fn new(dim: usize, max_depth: usize) -> Self
Create a new extractor for dim-dimensional paths at truncation max_depth.
Sourcepub fn observe(&mut self, point: &[f64])
pub fn observe(&mut self, point: &[f64])
Observe a new point on the path.
point must have length dim. Panics if the length is wrong.
The first observation establishes the baseline; increments start
from the second observation onward.
Sourcepub fn signature_at_depth(&self, depth: usize) -> Option<&[f64]>
pub fn signature_at_depth(&self, depth: usize) -> Option<&[f64]>
Get signature terms at a specific depth (1-indexed).
Returns None if depth is 0 or exceeds max_depth.
Trait Implementations§
Source§impl Clone for SignatureExtractor
impl Clone for SignatureExtractor
Source§fn clone(&self) -> SignatureExtractor
fn clone(&self) -> SignatureExtractor
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 SignatureExtractor
impl RefUnwindSafe for SignatureExtractor
impl Send for SignatureExtractor
impl Sync for SignatureExtractor
impl Unpin for SignatureExtractor
impl UnsafeUnpin for SignatureExtractor
impl UnwindSafe for SignatureExtractor
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