org.yccheok
Class SOMInput

java.lang.Object
  extended by org.yccheok.SOMInput

public class SOMInput
extends java.lang.Object

This is the wrapper to weight since SOM input has the same properties as weight.


Constructor Summary
SOMInput(int numOfInput)
          Creates a new instance of SOMInput
 
Method Summary
 int getNumOfInput()
          Get the number of input.
 double getValue(int index)
          Get index th of weight value.
 void setValue(double value, int index)
          Set index th weight value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOMInput

public SOMInput(int numOfInput)
Creates a new instance of SOMInput

Parameters:
numOfInput - The number of input connected by the weights.
Method Detail

getValue

public double getValue(int index)
Get index th of weight value.

Parameters:
index - index index th of weight value.
Returns:
index th of weight value.

setValue

public void setValue(double value,
                     int index)
Set index th weight value.

Parameters:
value - value Value to be set.
index - index Index th weight value.

getNumOfInput

public int getNumOfInput()
Get the number of input.

Returns:
The number of input.