comirva.config
Class SOMConfig

java.lang.Object
  extended by comirva.config.SOMConfig
Direct Known Subclasses:
SOMDefaultConfig

public class SOMConfig
extends Object

This class represents a configuration for a SOM-Calculation. It is used to pass a configuration to the SOM-instance.


Constructor Summary
SOMConfig(int mapUnitsInRow, int mapUnitsInColumn, int initMethod, int trainingMethod, int trainingLength, boolean circular)
          Creates a new instance of a SOM-Configuration.
 
Method Summary
 int getInitMethod()
          Returns the method used for initializing the codebook of the SOM.
 int getMapUnitsInColumn()
          Returns the number of map units in each column.
 int getMapUnitsInRow()
          Returns the number of map units in each row.
 int getTrainingLength()
          Returns the training length in epochs.
 int getTrainingMethod()
          Returns the method used for training the SOM.
 boolean isCircular()
           
 void setCircular(boolean circular)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOMConfig

public SOMConfig(int mapUnitsInRow,
                 int mapUnitsInColumn,
                 int initMethod,
                 int trainingMethod,
                 int trainingLength,
                 boolean circular)
Creates a new instance of a SOM-Configuration.

Parameters:
mapUnitsInRow - the number of map units in each row
mapUnitsInColumn - the number of map units in each column
initMethod - the initialization method SOM
trainingMethod - the training method SOM
trainingLength - the training length in epochs (1 epoch = number of iterations equals number of data items)
See Also:
SOM
Method Detail

getMapUnitsInRow

public int getMapUnitsInRow()
Returns the number of map units in each row.

Returns:
the number of map units in each row

getMapUnitsInColumn

public int getMapUnitsInColumn()
Returns the number of map units in each column.

Returns:
the number of map units in each column

getInitMethod

public int getInitMethod()
Returns the method used for initializing the codebook of the SOM.

Returns:
an int indicating the initialization method (for a list, see @link comirva.mlearn.SOM)
See Also:
SOM

getTrainingMethod

public int getTrainingMethod()
Returns the method used for training the SOM.

Returns:
an int indicating the training method (for a list, see @link comirva.mlearn.SOM)
See Also:
SOM

getTrainingLength

public int getTrainingLength()
Returns the training length in epochs.

Returns:
the number of epochs the training is performed

isCircular

public boolean isCircular()

setCircular

public void setCircular(boolean circular)