public class PocketSOMFormatUtils
extends java.lang.Object
Created on Jan 21, 2005
Constructor and Description |
---|
PocketSOMFormatUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
convertMapFormat(GrowingLayer layer,
java.lang.String outputFileName)
Writes the map information of the given GrowingLayer to the given file in PocketSOMFormat
|
static void |
convertMapFormat(java.lang.String wgt,
java.lang.String unit,
java.lang.String map,
java.lang.String outputFileName)
reads a given map description in SOMLibInputFormat and writes to the given file in PocketSOMFormat
|
static java.lang.StringBuilder |
createPocketSomMapping(GrowingLayer layer) |
static int |
getMaxNumberOfMappedElements(GrowingLayer layer)
Gets the max number of mapped instances of a unit for the GrowingLayer.
|
static int |
getMaxNumberOfMappedElements(SOMLibFormatInputReader ir)
get the max number of mapped instances of a unit for the given map
|
static void |
lightenMapFormat(java.lang.String wgt,
java.lang.String unit,
java.lang.String map,
java.lang.String outputFileName,
float factor)
Deprecated.
since streaming works this is not needed anymore (it never worked very well anyway)
|
public static int getMaxNumberOfMappedElements(SOMLibFormatInputReader ir)
public static int getMaxNumberOfMappedElements(GrowingLayer layer)
public static void convertMapFormat(java.lang.String wgt, java.lang.String unit, java.lang.String map, java.lang.String outputFileName)
outputFileName
- name of the PocketSOM formatted file to be createdpublic static java.lang.StringBuilder createPocketSomMapping(GrowingLayer layer)
public static void convertMapFormat(GrowingLayer layer, java.lang.String outputFileName)
layer
- The layer containing the map informationoutputFileName
- name of the PocketSOM formatted file to be created@Deprecated public static void lightenMapFormat(java.lang.String wgt, java.lang.String unit, java.lang.String map, java.lang.String outputFileName, float factor)
outputFileName
- name of the PocketSOM formatted file to be createdfactor
- 0 an empty map, 1.0 for a full map