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§
Provided Methods§
sourcefn counting_aggregate(&self, taxons: &[TaxonId]) -> Result<TaxonId>
fn counting_aggregate(&self, taxons: &[TaxonId]) -> Result<TaxonId>
Aggregates a list of taxons into a resulting taxon id.