pub struct Motif {
pub canonical_index: usize,
pub occurrences: Vec<MotifOccurrence>,
pub period: Option<usize>,
pub mean_match_distance: f32,
}Expand description
A discovered recurring pattern in a trajectory.
Fields§
§canonical_index: usizeIndex of the canonical occurrence in the trajectory.
occurrences: Vec<MotifOccurrence>All occurrences: (start_index, distance_to_canonical).
period: Option<usize>Detected period in number of steps (if regular). None if aperiodic.
mean_match_distance: f32Mean distance across all occurrences to canonical.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Motif
impl RefUnwindSafe for Motif
impl Send for Motif
impl Sync for Motif
impl Unpin for Motif
impl UnwindSafe for Motif
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