Trait umgap::agg::Aggregator

source ·
pub trait Aggregator {
    // Required method
    fn aggregate(&self, taxons: &HashMap<TaxonId, f32>) -> Result<TaxonId>;

    // Provided method
    fn counting_aggregate(&self, taxons: &[TaxonId]) -> Result<TaxonId> { ... }
}
Expand description

Allows to aggregate over a taxon tree.

Required Methods§

source

fn aggregate(&self, taxons: &HashMap<TaxonId, f32>) -> Result<TaxonId>

Aggregates a set of scored taxons into a resulting taxon id.

Provided Methods§

source

fn counting_aggregate(&self, taxons: &[TaxonId]) -> Result<TaxonId>

Aggregates a list of taxons into a resulting taxon id.

Implementors§

source§

impl Aggregator for umgap::rmq::lca::LCACalculator

source§

impl Aggregator for umgap::rmq::mix::MixCalculator

source§

impl Aggregator for RTLCalculator

source§

impl Aggregator for umgap::tree::lca::LCACalculator

source§

impl Aggregator for umgap::tree::mix::MixCalculator