Enum hpo::similarity::StandardCombiner
source · pub enum StandardCombiner {
FunSimAvg,
FunSimMax,
Bwa,
}
Expand description
Default implementations for combining similarity scores
of 2 HpoSet
s
Variants§
FunSimAvg
funSimAvg algorithm from Schlicker A, et. al., BMC Bioinf (2006)
FunSimMax
funSimMax algorithm from Schlicker A, et. al., BMC Bioinf (2006)
Bwa
BMA algorithm from Wang JZ, et. al., Bioinformatics (2007)
Trait Implementations§
source§impl Clone for StandardCombiner
impl Clone for StandardCombiner
source§fn clone(&self) -> StandardCombiner
fn clone(&self) -> StandardCombiner
Returns a copy of the value. Read more
1.0.0 · 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 StandardCombiner
impl Debug for StandardCombiner
source§impl Default for StandardCombiner
impl Default for StandardCombiner
source§impl Hash for StandardCombiner
impl Hash for StandardCombiner
source§impl PartialEq for StandardCombiner
impl PartialEq for StandardCombiner
source§fn eq(&self, other: &StandardCombiner) -> bool
fn eq(&self, other: &StandardCombiner) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SimilarityCombiner for StandardCombiner
impl SimilarityCombiner for StandardCombiner
source§fn combine(&self, m: &Matrix<'_, f32>) -> f32
fn combine(&self, m: &Matrix<'_, f32>) -> f32
This method implements the actual logic to calculate a single
similarity score from a Matrix of term - term similarity scores.
source§fn calculate(&self, m: &Matrix<'_, f32>) -> f32
fn calculate(&self, m: &Matrix<'_, f32>) -> f32
this method is called by
GroupSimilarity
to combine individual term - term
similarity scores into a single score for the group - group similaritysource§impl TryFrom<&str> for StandardCombiner
impl TryFrom<&str> for StandardCombiner
impl Copy for StandardCombiner
impl Eq for StandardCombiner
impl StructuralPartialEq for StandardCombiner
Auto Trait Implementations§
impl Freeze for StandardCombiner
impl RefUnwindSafe for StandardCombiner
impl Send for StandardCombiner
impl Sync for StandardCombiner
impl Unpin for StandardCombiner
impl UnwindSafe for StandardCombiner
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.