pub struct SimilarEpisode {
pub catalog_index: usize,
pub past_episode: DebugEpisode,
pub similarity: f64,
}Expand description
Result of a catalog similarity lookup.
Fields§
§catalog_index: usizeIndex into the catalog (0..N). Stable for as long as the catalog has not wrapped past this entry.
past_episode: DebugEpisodeThe matched past episode.
similarity: f64Similarity score in [0.0, 1.0]. 1.0 = identical signature
vector (motif, drift direction, peak slew, duration,
contributing-signal-count rounded to nearest); 0.0 = nothing
in common. Cosine-style metric over a 5-element feature vector.
Trait Implementations§
Source§impl Clone for SimilarEpisode
impl Clone for SimilarEpisode
Source§fn clone(&self) -> SimilarEpisode
fn clone(&self) -> SimilarEpisode
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 moreSource§impl Debug for SimilarEpisode
impl Debug for SimilarEpisode
Source§impl PartialEq for SimilarEpisode
impl PartialEq for SimilarEpisode
Source§fn eq(&self, other: &SimilarEpisode) -> bool
fn eq(&self, other: &SimilarEpisode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimilarEpisode
impl StructuralPartialEq for SimilarEpisode
Auto Trait Implementations§
impl Freeze for SimilarEpisode
impl RefUnwindSafe for SimilarEpisode
impl Send for SimilarEpisode
impl Sync for SimilarEpisode
impl Unpin for SimilarEpisode
impl UnsafeUnpin for SimilarEpisode
impl UnwindSafe for SimilarEpisode
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