comirva.web.text.similarity.normalization
Class NormFunc_01
java.lang.Object
comirva.web.text.similarity.normalization.NormFunc
comirva.web.text.similarity.normalization.NormFunc_01
public class NormFunc_01
- extends NormFunc
normalise the values so that the smallest appearing nonnegative
value is 0 and the largest nonnegative value is 1.0f.
Values smaller than zero are set to zero.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NormFunc_01
public NormFunc_01()
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