saaps.network
Class NormParam

java.lang.Object
  |
  +--saaps.network.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]. The timeDelay parameter is used to create a time delay line so that the number of inputs becoms timeDelay*(the number of input parameters). In the future the methods for the normalization and time delay in TimeSeries should be moved into a new class NetInput which contain the normalization parameters.

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.
 int getTimeDelay()
          Get the time delay length.
 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.
 void setTimeDelay(int l)
          Set the time delay length.
 
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.

getTimeDelay

public int getTimeDelay()
Get the time delay length.

getNumOfFields

public int getNumOfFields()
Get the number of inputs.

setTimeDelay

public void setTimeDelay(int l)
Set the time delay length.