pub struct MotifDetectionService { /* private fields */ }Expand description
Service for detecting motif patterns in vocalization sequences.
Implementations§
Source§impl MotifDetectionService
impl MotifDetectionService
Sourcepub fn new(config: MotifConfig) -> Self
pub fn new(config: MotifConfig) -> Self
Create a new motif detection service.
Sourcepub fn default_service() -> Self
pub fn default_service() -> Self
Create with default configuration.
Sourcepub async fn detect_motifs(
&self,
sequences: &[Vec<ClusterId>],
min_length: usize,
) -> Result<Vec<Motif>>
pub async fn detect_motifs( &self, sequences: &[Vec<ClusterId>], min_length: usize, ) -> Result<Vec<Motif>>
Sourcepub async fn compute_transition_matrix(
&self,
sequences: &[Vec<ClusterId>],
) -> Result<TransitionMatrix>
pub async fn compute_transition_matrix( &self, sequences: &[Vec<ClusterId>], ) -> Result<TransitionMatrix>
Sourcepub async fn find_motif_occurrences(
&self,
motif: &Motif,
sequences: &[(RecordingId, Vec<ClusterId>)],
) -> Result<Vec<MotifOccurrence>>
pub async fn find_motif_occurrences( &self, motif: &Motif, sequences: &[(RecordingId, Vec<ClusterId>)], ) -> Result<Vec<MotifOccurrence>>
Find occurrences of a specific motif in sequences.
Auto Trait Implementations§
impl Freeze for MotifDetectionService
impl RefUnwindSafe for MotifDetectionService
impl Send for MotifDetectionService
impl Sync for MotifDetectionService
impl Unpin for MotifDetectionService
impl UnwindSafe for MotifDetectionService
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