comirva.web.text.similarity.normalization
Class NormFunc
java.lang.Object
comirva.web.text.similarity.normalization.NormFunc
- Direct Known Subclasses:
- NormFunc_01, NormFunc_MaxToX, NormFunc_None, NormFunc_SumToX
public abstract class NormFunc
- extends Object
Class to implement a normalization function.
Used by AggregFunc to normalise web pages before combining them,
and by some SimMeasure implementations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NormFunc
public NormFunc()
normalize
public abstract float[] normalize(float[] f)
- The actual functionality.
The original values in f are left unchanged to avoid possible side effects.
Nonetheless, the returned values should not be changed because for some functions
(e.g., NormFunc_Nothing), the returned object is or may be the original object.
- Parameters:
f
- the array to normalise.
- Returns:
- a
getName
public String getName()