comirva.web.text.similarity.normalization
Class NormFunc_01

java.lang.Object
  extended by comirva.web.text.similarity.normalization.NormFunc
      extended by 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.


Constructor Summary
NormFunc_01()
           
 
Method Summary
 String getName()
           
 float[] normalize(float[] f)
          The actual functionality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormFunc_01

public NormFunc_01()
Method Detail

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