saaps.ann
Class NormParam

java.lang.Object
  |
  +--saaps.ann.NormParam

public class NormParam
extends java.lang.Object
implements java.io.Serializable

The class NormParam contain the normalization parameters needed for the preprocessing of a TimeSeries object before it is input to a network. The parameters are

Thus the range [minIn,maxIn] is mapped to the range [minOut,maxOut].

See Also:
Serialized Form

Constructor Summary
NormParam(double[] minIn, double[] maxIn, double[] minOut, double[] maxOut)
           
NormParam(java.lang.String s, int nof)
          Create a NormParam object from a saved object.
 
Method Summary
 double[] getMaxValueIn()
          Get the maxIn value.
 double[] getMaxValueOut()
          Get the maxOut value.
 double[] getMinValueIn()
          Get the minIn value.
 double[] getMinValueOut()
          Get the minOut value.
 int getNumOfFields()
          Get the number of inputs.
 void setMaxValueIn(double[] m)
          Set the maxIn value.
 void setMaxValueOut(double[] m)
          Set the maxOut value.
 void setMinValueIn(double[] m)
          Set the minIn value.
 void setMinValueOut(double[] m)
          Set the minOut value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormParam

public NormParam(java.lang.String s,
                 int nof)
Create a NormParam object from a saved object.

Note that this constructor assumes that all inputs are normalized with the same values.

Parameters:
s - file name

NormParam

public NormParam(double[] minIn,
                 double[] maxIn,
                 double[] minOut,
                 double[] maxOut)
Method Detail

getMinValueIn

public double[] getMinValueIn()
Get the minIn value.

setMinValueIn

public void setMinValueIn(double[] m)
Set the minIn value.

getMaxValueIn

public double[] getMaxValueIn()
Get the maxIn value.

setMaxValueIn

public void setMaxValueIn(double[] m)
Set the maxIn value.

getMinValueOut

public double[] getMinValueOut()
Get the minOut value.

setMinValueOut

public void setMinValueOut(double[] m)
Set the minOut value.

getMaxValueOut

public double[] getMaxValueOut()
Get the maxOut value.

setMaxValueOut

public void setMaxValueOut(double[] m)
Set the maxOut value.

getNumOfFields

public int getNumOfFields()
Get the number of inputs.