The Encog Project

org.encog.util
Class NormalizeInput

java.lang.Object
  extended by org.encog.util.NormalizeInput

public class NormalizeInput
extends java.lang.Object

NormalizeInput: Input into a Self Organizing Map must be normalized.


Nested Class Summary
static class NormalizeInput.NormalizationType
          This class support two normalization types.
 
Constructor Summary
NormalizeInput(NeuralData input, NormalizeInput.NormalizationType type)
          Normalize an input array into a matrix.
 
Method Summary
protected  void calculateFactors(NeuralData input)
          Determine both the normalization factor and the synthetic input for the given input.
protected  Matrix createInputMatrix(NeuralData pattern, double extra)
          Create an input matrix that has enough space to hold the extra synthetic input.
 Matrix getInputMatrix()
          Get the resulting input matrix.
 double getNormfac()
          The normalization factor.
 double getSynth()
          The synthetic input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizeInput

public NormalizeInput(NeuralData input,
                      NormalizeInput.NormalizationType type)
Normalize an input array into a matrix. The resulting matrix will have one extra column that will be occupied by the synthetic input.

Parameters:
input - The input array to be normalized.
type - What type of normalization to use.
Method Detail

calculateFactors

protected void calculateFactors(NeuralData input)
Determine both the normalization factor and the synthetic input for the given input.

Parameters:
input - The input to normalize.

createInputMatrix

protected Matrix createInputMatrix(NeuralData pattern,
                                   double extra)
Create an input matrix that has enough space to hold the extra synthetic input.

Parameters:
pattern - The input pattern to create.
extra - The synthetic input.
Returns:
A matrix that contains the input pattern and the synthetic input.

getInputMatrix

public Matrix getInputMatrix()
Get the resulting input matrix.

Returns:
The resulting input matrix.

getNormfac

public double getNormfac()
The normalization factor.

Returns:
The normalization factor.

getSynth

public double getSynth()
The synthetic input.

Returns:
The synthetic input.

The Encog Project