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.
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic UnitTermWeightNormalizer()
UnitTermWeightNormalizer.public void normalizeWeights(Vector weights, Vector counts, Vector globalWeights)
TermWeightNormalizerweights - 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.