pub struct SimilarityReport {
pub score: f64,
pub spectral_similarity: f64,
pub spectral_distance_db: f64,
pub loudness_difference_lu: f64,
pub mfcc_distance: f64,
pub mfcc_similarity: f64,
pub verdict: String,
}Expand description
Result of similarity.
Fields§
§score: f64Overall similarity 0..1 (1 = indistinguishable by these measures).
spectral_similarity: f64Cosine similarity of the mean-removed log third-octave spectra (clamped to 0..1).
spectral_distance_db: f64RMS difference of the level-matched third-octave spectra (dB).
loudness_difference_lu: f64Integrated loudness of b minus a (LU).
mfcc_distance: f64Euclidean distance between mean MFCC vectors (c1..c12, dB scale).
mfcc_similarity: f64§verdict: Stringsame (score ≥ 0.9), similar (≥ 0.7), or different.
Trait Implementations§
Source§impl Clone for SimilarityReport
impl Clone for SimilarityReport
Source§impl Debug for SimilarityReport
impl Debug for SimilarityReport
Auto Trait Implementations§
impl Freeze for SimilarityReport
impl RefUnwindSafe for SimilarityReport
impl Send for SimilarityReport
impl Sync for SimilarityReport
impl Unpin for SimilarityReport
impl UnsafeUnpin for SimilarityReport
impl UnwindSafe for SimilarityReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more