public final class CompetitiveImpactAccumulator extends Object
| Constructor and Description |
|---|
CompetitiveImpactAccumulator()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int freq,
long norm)
Accumulate a (freq,norm) pair, updating this structure if there is no
equivalent or more competitive entry already.
|
void |
addAll(CompetitiveImpactAccumulator acc)
Merge
acc into this. |
void |
clear()
Reset to the same state it was in after creation.
|
Collection<Impact> |
getCompetitiveFreqNormPairs()
Get the set of competitive freq and norm pairs, ordered by increasing freq and norm.
|
String |
toString() |
public CompetitiveImpactAccumulator()
public void clear()
public void add(int freq,
long norm)
public void addAll(CompetitiveImpactAccumulator acc)
acc into this.public Collection<Impact> getCompetitiveFreqNormPairs()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.