Struct umgap::rmq::mix::MixCalculator
source · pub struct MixCalculator { /* private fields */ }
Expand description
Struct capable of aggregating of a list of nodes in a TaxonTree, using a hybrid approach between MRL and LCA. It can either prefer MRL or LCA more, depending on a given ratio.
Implementations§
source§impl MixCalculator
impl MixCalculator
sourcepub fn new(taxonomy: TaxonTree, factor: f32) -> Self
pub fn new(taxonomy: TaxonTree, factor: f32) -> Self
Constructs a new MixCalculator
§Arguments:
taxonomy
, the TaxonTree containing all known taxons.factor
, a ratio (i.e. a number in [0.0, 1.0] which decides the ratio that MRL or LCA will be chosen as aggregation. If factor is 1, LCA will always be chosen; If factor is 0, MRL.
Trait Implementations§
source§impl Aggregator for MixCalculator
impl Aggregator for MixCalculator
impl MultiThreadSafeAggregator for MixCalculator
Auto Trait Implementations§
impl RefUnwindSafe for MixCalculator
impl Send for MixCalculator
impl Sync for MixCalculator
impl Unpin for MixCalculator
impl UnwindSafe for MixCalculator
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