comirva.web.text.similarity.normalization
Class NormFunc_MaxToX
java.lang.Object
comirva.web.text.similarity.normalization.NormFunc
comirva.web.text.similarity.normalization.NormFunc_MaxToX
public class NormFunc_MaxToX
- extends NormFunc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NormFunc_MaxToX
public NormFunc_MaxToX(float maxTo)
normalize
public float[] normalize(float[] f)
- Description copied from class:
NormFunc
- 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.
- Specified by:
normalize
in class NormFunc
- Parameters:
f
- the array to normalise.
- Returns:
- a
getName
public String getName()
- Overrides:
getName
in class NormFunc