databionics.io
Class WtsFile

java.lang.Object
  extended by databionics.io.BaseFile
      extended by databionics.io.Array2DFile
          extended by databionics.io.Array3DFile
              extended by databionics.io.WtsFile

public class WtsFile
extends Array3DFile

File that stores weights for a SOM grid


Field Summary
protected  java.lang.String distance
          Data space distance function name
protected  java.lang.Class grid
          Grid class used in training created from comment
protected static org.apache.log4j.Logger log
          Log4j logging.
 
Fields inherited from class databionics.io.Array3DFile
cols, rows
 
Fields inherited from class databionics.io.Array2DFile
data
 
Fields inherited from class databionics.io.BaseFile
allowEmptyLines, comment, commentPrefix, delimiter, delimiters, file, header, headerPrefix, loc, nf
 
Constructor Summary
WtsFile()
          Standard constructor
WtsFile(int rows, int cols, int dim)
          Constructor with size for an empty array.
WtsFile(java.lang.String filename)
          Constructor with a filename
 
Method Summary
 java.lang.String getDistance()
          Get the name of the dataspace distance function.
static FileType getFileType()
          Get the type of file.
 java.lang.Class getGrid()
          Get the class of the grid used in training.
protected  void parseHeader()
          Parse the header.
 
Methods inherited from class databionics.io.Array3DFile
buildHeader, getColumns, getDimensions, getRows, init
 
Methods inherited from class databionics.io.Array2DFile
buildLine, get, getData, getSize, init, parseLine, set, setData, setData
 
Methods inherited from class databionics.io.BaseFile
checkHeader, checkHeaderAgainstSize, getComment, getFile, getFilename, getHeader, getLocale, getNumberFormat, isHeader, isNaN, isNumber, load, load, parseError, save, save, setComment, setFilename, setLocale, writeStringList, writeStringList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Log4j logging.


grid

protected java.lang.Class grid
Grid class used in training created from comment


distance

protected java.lang.String distance
Data space distance function name

Constructor Detail

WtsFile

public WtsFile()
Standard constructor


WtsFile

public WtsFile(java.lang.String filename)
Constructor with a filename

Parameters:
filename - Name of the file

WtsFile

public WtsFile(int rows,
               int cols,
               int dim)
Constructor with size for an empty array.

Parameters:
rows - Rows of data array.
cols - Columns of data array.
dim - Dimension of data array.
Method Detail

getGrid

public java.lang.Class getGrid()
Get the class of the grid used in training. Parsed from the comment in the *.wts file.

Returns:
Class of the grid

getDistance

public java.lang.String getDistance()
Get the name of the dataspace distance function.

Returns:
name of distance

parseHeader

protected void parseHeader()
Parse the header.

Overrides:
parseHeader in class Array3DFile

getFileType

public static FileType getFileType()
Get the type of file.

Returns:
file type


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