pub struct SequenceAnalysisService { /* private fields */ }Expand description
Service for analyzing vocalization sequences.
Implementations§
Source§impl SequenceAnalysisService
impl SequenceAnalysisService
Sourcepub async fn analyze_sequence(
&self,
segment_ids: &[SegmentId],
cluster_assignments: &HashMap<SegmentId, ClusterId>,
recording_id: RecordingId,
) -> Result<SequenceAnalysis>
pub async fn analyze_sequence( &self, segment_ids: &[SegmentId], cluster_assignments: &HashMap<SegmentId, ClusterId>, recording_id: RecordingId, ) -> Result<SequenceAnalysis>
Sourcepub fn compute_entropy(
&self,
transitions: &[(ClusterId, ClusterId, f32)],
) -> f32
pub fn compute_entropy( &self, transitions: &[(ClusterId, ClusterId, f32)], ) -> f32
Compute Shannon entropy of transition probabilities.
Sourcepub async fn compute_metrics(
&self,
cluster_sequence: &[ClusterId],
) -> Result<SequenceMetrics>
pub async fn compute_metrics( &self, cluster_sequence: &[ClusterId], ) -> Result<SequenceMetrics>
Compute sequence metrics from a cluster sequence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SequenceAnalysisService
impl RefUnwindSafe for SequenceAnalysisService
impl Send for SequenceAnalysisService
impl Sync for SequenceAnalysisService
impl Unpin for SequenceAnalysisService
impl UnwindSafe for SequenceAnalysisService
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