public class UnitTermWeightNormalizer extends AbstractTermWeightNormalizer
Constructor and Description |
---|
UnitTermWeightNormalizer()
Creates a new
UnitTermWeightNormalizer . |
Modifier and Type | Method and Description |
---|---|
void |
normalizeWeights(Vector weights,
Vector counts,
Vector globalWeights)
Normalizes the given weight vector.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public UnitTermWeightNormalizer()
UnitTermWeightNormalizer
.public void normalizeWeights(Vector weights, Vector counts, Vector globalWeights)
TermWeightNormalizer
weights
- The weights to normalize. Contains an input and should be modified
to create an output. Cannot be null.counts
- The term counts for the document to normalize. Cannot be null.globalWeights
- The global weights to use in to create the weights, if any. Can be
null.