databionics.esom.tool.projection
Class ProjectionTool

java.lang.Object
  extended by databionics.esom.tool.AbstractTool
      extended by databionics.esom.tool.projection.ProjectionTool
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ProjectionTool
extends AbstractTool

Author:
Nogger,Stammi

Field Summary
protected  cern.colt.function.VectorVectorFunction distanceFunction
          distance function in data space
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class databionics.esom.tool.AbstractTool
application, bottomBar, bottomTab, btnClear, btnLoad, btnPaint, btnSave, clearItm, clickMode, controlButton, creatorPanel, dataTable, dataTableModel, displayPanel, dragMode, drawing, fileMenu, filename, gui, loader, loadItm, moveCallback, pnlControl, polygonMode, popMenu, removeItm, renderer, renderPanel, saveItm, toolBar, toolRenderer
 
Constructor Summary
ProjectionTool(boolean gui, Application application)
           
 
Method Summary
 ClsFile autoClassify(RectangularGrid grid, ClassmaskFile classmaskFile, BMFile bmFile)
           
 BMFile convert(RectangularGrid rgrid, LrnFile lrnFile)
           
protected  int findBestMatch(int row, LrnFile lrnFile, RectangularGrid rgrid)
          Find best matching weight for data vector.
protected  BMFile getBestMatches(cern.colt.list.IntArrayList bestmatches, RectangularGrid rgrid, LrnFile lrnFile)
          Save indices of best matching neurons to a *.bm file Available after calling train().
protected  double getDistance(int row, int index, LrnFile lrnFile, RectangularGrid rgrid)
          Get the distance between a data row and a neuron.
protected  cern.colt.matrix.DoubleMatrix1D getPattern(int row, LrnFile lrnFile)
          Access to a data pattern by row number
 java.lang.String getShortTitle()
           
 void init()
          Initialize what needs to be Initialized.
 boolean load(java.lang.String filename)
           
 void reset()
          reset the tool.
 void setData(java.lang.Object object)
           
 
Methods inherited from class databionics.esom.tool.AbstractTool
actionPerformed, callback, getApplication, getBottomTab, getCallback, getControlButton, getCreatorPanel, getDataTable, getDataTableModel, getDisplayPanel, getFileMenu, getFilename, getLoader, getMessage, getMoveCallback, getPnlControl, getPopMenu, getRenderer, getToolBar, getToolRenderer, initGui, isClickMode, isDragMode, isDrawing, isGui, isPolygonMode, moveSelection, reAreas, reColorize, reDraw, reFore, reMask, rePostFore, rePreFore, reRender, reTile, reZoom, select, setApplication, setBottomTab, setCallback, setClickMode, setControlButton, setCreatorPanel, setCtrlAccelerator, setDataTable, setDataTableModel, setDisplayPanel, setDragMode, setDrawing, setFilename, setLoader, setMoveCallback, setPolygonMode, setRenderer, setToolBar, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

distanceFunction

protected cern.colt.function.VectorVectorFunction distanceFunction
distance function in data space

Constructor Detail

ProjectionTool

public ProjectionTool(boolean gui,
                      Application application)
Method Detail

convert

public BMFile convert(RectangularGrid rgrid,
                      LrnFile lrnFile)

autoClassify

public ClsFile autoClassify(RectangularGrid grid,
                            ClassmaskFile classmaskFile,
                            BMFile bmFile)

findBestMatch

protected int findBestMatch(int row,
                            LrnFile lrnFile,
                            RectangularGrid rgrid)
Find best matching weight for data vector. Brute force search over all neurons by default.

Parameters:
row - Row of the data pattern

getDistance

protected double getDistance(int row,
                             int index,
                             LrnFile lrnFile,
                             RectangularGrid rgrid)
Get the distance between a data row and a neuron.

Parameters:
row - Row of data pattern
index - Index of neuron
Returns:
value of distance.

getPattern

protected cern.colt.matrix.DoubleMatrix1D getPattern(int row,
                                                     LrnFile lrnFile)
Access to a data pattern by row number

Parameters:
row - Row of data pattern

getBestMatches

protected BMFile getBestMatches(cern.colt.list.IntArrayList bestmatches,
                                RectangularGrid rgrid,
                                LrnFile lrnFile)
Save indices of best matching neurons to a *.bm file Available after calling train(). !!! works only with rectangular grids !!!


init

public void init()
Description copied from class: AbstractTool
Initialize what needs to be Initialized.

Specified by:
init in class AbstractTool

reset

public void reset()
Description copied from class: AbstractTool
reset the tool.

Specified by:
reset in class AbstractTool

load

public boolean load(java.lang.String filename)

setData

public void setData(java.lang.Object object)

getShortTitle

public java.lang.String getShortTitle()
Specified by:
getShortTitle in class AbstractTool


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.