org.eml.sir.util
Class HyperbolicNormalizer

java.lang.Object
  extended byorg.eml.sir.util.HyperbolicNormalizer

public class HyperbolicNormalizer
extends java.lang.Object

Class for normalizing values.

Author:
Hendrik Niederlich (EML-R)

Constructor Summary
HyperbolicNormalizer()
          Create a new instance of HyperbolicNormalizer.
HyperbolicNormalizer(double mediumValue, double x, double y, boolean reciproc)
          Create a new instance of HyperbolicNormalizer.
 
Method Summary
 double normalize(double value)
          Return a normalized value.
 double normalize2(double value)
          Return a normalized value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperbolicNormalizer

public HyperbolicNormalizer()
Create a new instance of HyperbolicNormalizer.


HyperbolicNormalizer

public HyperbolicNormalizer(double mediumValue,
                            double x,
                            double y,
                            boolean reciproc)
Create a new instance of HyperbolicNormalizer.

Parameters:
mediumValue - Input value whose mormalization result is 0.5.
x - X coordinate of a point on the graph of the normalization function of normalize(). Must be != 0.5.
y - Y coordinate (value) corresponding to x. 0 < y < 1
Method Detail

normalize

public double normalize(double value)
Return a normalized value. Input can be < or > 0.

Returns:
A positive value in the range from 0 to 1.

normalize2

public double normalize2(double value)
Return a normalized value. Input must be > 0.

Returns:
A positive value in the range from 0 to 1.