SOMVizard documentation
Public API

som
Class Layer

java.lang.Object
  |
  +--som.Layer
Direct Known Subclasses:
CategoryLayer, ComparableLayer, ComponentLayer

public class Layer
extends java.lang.Object

One layer in SOM.

Author:
Antti Kerminen

Field Summary
protected  java.lang.String featureName
          The name of the feature the surface represents.
protected  som.Cell[][] map
          Cells in the SOM.
protected  double[][] surface
          The surface.
protected  int winnerColumn
          Column of the BMU.
protected  int winnerRow
          Row of the BMU.
 
Constructor Summary
protected Layer()
          Create a new layer.
protected Layer(som.Cell[][] map)
          Create a new layer with given cells.
protected Layer(som.Cell[][] map, java.lang.String featureName)
          Create a new map with given cells and feature name.
 
Method Summary
 int getColumns()
           
 java.lang.String getFeatureName()
           
 int getRows()
           
 double getValue(int row, int column)
          Get a value in the surface.
 int getWinnerColumn()
           
 int getWinnerRow()
           
 void scale(double high)
           
 void setValue(int row, int column, double value)
          Set a value in the specified location in the surface.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

surface

protected double[][] surface
The surface.


map

protected som.Cell[][] map
Cells in the SOM.


featureName

protected java.lang.String featureName
The name of the feature the surface represents.


winnerRow

protected int winnerRow
Row of the BMU.


winnerColumn

protected int winnerColumn
Column of the BMU.

Constructor Detail

Layer

protected Layer()
Create a new layer.


Layer

protected Layer(som.Cell[][] map)
Create a new layer with given cells.

Parameters:
map - cells of the map.

Layer

protected Layer(som.Cell[][] map,
                java.lang.String featureName)
Create a new map with given cells and feature name.

Parameters:
map - cells of the map.
featureName - name of the feature visulized with this layer.
Method Detail

setValue

public void setValue(int row,
                     int column,
                     double value)
Set a value in the specified location in the surface.


getValue

public double getValue(int row,
                       int column)
Get a value in the surface.


getFeatureName

public java.lang.String getFeatureName()

getRows

public int getRows()

getColumns

public int getColumns()

getWinnerRow

public int getWinnerRow()

getWinnerColumn

public int getWinnerColumn()

scale

public void scale(double high)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

SOMVizard documentation
Public API

Copyright © 2003 - All rights reserved.
Antti Kerminen