|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
at.tuwien.ifs.somtoolbox.visualization.NeighbourhoodGraph
public class NeighbourhoodGraph
This visualisation provides two visualization plugin-ins for neighbourhood graphs. The first one uses knn-based
distances, the second one radius-based distances.
Described in:
Georg Poelzlbauer, Andreas Rauber, and Michael Dittenbach. Advanced visualization techniques for
self-organizing maps with graph-based methods. In Jun Wang, Xiaofeng Liao, Zhang Yi, editors, Proceedings of the
Second International Symposium on Neural Networks (ISNN'05), pages 75-80, Chongqing, China, May 30 - June 1 2005.
Springer-Verlag.
| Nested Class Summary | |
|---|---|
private class |
NeighbourhoodGraph.NeighbourhoodControlPanel
The control panel for the two plug-ins, containing a JSpinner. |
| Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
|---|
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel |
| Field Summary | |
|---|---|
private int |
currentVisualization
|
private InputVectorDistanceMatrix |
distanceMatrix
|
private InputData |
inputData
|
private int |
k
number of neighbours for knn-based distances |
private ArrayList<UnitPair>[] |
knnLinesCache
caches the results of knn-based connections |
private static int |
MAX_K
|
private static double |
MAX_RADIUS
|
private DistanceMetric |
metric
|
private static int |
MIN_K
|
private static double |
MIN_RADIUS
|
private NeighbourhoodGraph.NeighbourhoodControlPanel |
neighbourhoodPanel
control panel for this plug-in |
(package private) int |
numVectors
|
private double |
radius
radius for radius-based distances |
private Hashtable<Double,ArrayList<UnitPair>> |
radiusLinesCache
caches the results of radius-based connections |
| Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
|---|
cache, CACHE_KEY_SECTION_SEPARATOR, CACHE_KEY_SEPARATOR, contourInterpolationMode, contourMode, controlPanel, currentZDimSlice, inputObjects, interpolate, log, map, MAX_CACHE_SIZE_MB, neededInputObjects, NUM_VISUALIZATIONS, numberOfContours, opacity, preferredScaleFactor, VISUALIZATION_DESCRIPTIONS, VISUALIZATION_NAMES, VISUALIZATION_SHORT_NAMES, visualizationUpdateListener, zSize |
| Fields inherited from interface at.tuwien.ifs.somtoolbox.visualization.BackgroundImageVisualizer |
|---|
DEFAULT_BACKGROUND_VISUALIZATION_SCALE |
| Constructor Summary | |
|---|---|
NeighbourhoodGraph()
Constructor. |
|
| Method Summary | |
|---|---|
private ArrayList<UnitPair> |
createKNNBased(GrowingSOM gsom,
int width,
int height)
Returns a list of unit-pairs, for which at least one of the two units is one of the k-nearest neighbours of the other one. |
private ArrayList<UnitPair> |
createRadiusBased(GrowingSOM gsom,
int width,
int height)
Returns a list of unit-pairs, for which the distance of at least one of them to the other one is smaller than the fixed radius. |
BufferedImage |
createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image. |
protected String |
getCacheKey(GrowingSOM gsom,
int index,
int width,
int height)
The key of a cache is created as follows: VisualisationShortName + Hashcode of the SOM + Width + Height + Opacity. Sub-classes might add more information to the cache, if needed. |
HashMap<String,BufferedImage> |
getVisualizationFlavours_K(int index,
GrowingSOM gsom,
int width,
int height)
|
HashMap<String,BufferedImage> |
getVisualizationFlavours_R(int index,
GrowingSOM gsom,
int width,
int height)
|
HashMap<String,BufferedImage> |
getVisualizationFlavours(int index,
GrowingSOM gsom,
int width,
int height)
Default implementation which returns a map of size 1 with the standard, unparameterised visualisation of the given variant. |
HashMap<String,BufferedImage> |
getVisualizationFlavours(int index,
GrowingSOM gsom,
int width,
int height,
int maxFlavours)
Default implementation equal to AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int). |
HashMap<String,BufferedImage> |
getVisualizationFlavours(int index,
GrowingSOM gsom,
int width,
int height,
Map<String,String> flavourParameters)
Default implementation equal to AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int). |
String[] |
needsAdditionalFiles()
Checks whether this visualisation still needs some input files to generate an image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MIN_K
private static final int MAX_K
private static final double MIN_RADIUS
private static final double MAX_RADIUS
private int k
private double radius
private NeighbourhoodGraph.NeighbourhoodControlPanel neighbourhoodPanel
private int currentVisualization
private InputData inputData
private InputVectorDistanceMatrix distanceMatrix
private DistanceMetric metric
private ArrayList<UnitPair>[] knnLinesCache
private Hashtable<Double,ArrayList<UnitPair>> radiusLinesCache
int numVectors
| Constructor Detail |
|---|
public NeighbourhoodGraph()
| Method Detail |
|---|
public BufferedImage createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
AbstractBackgroundImageVisualizer
createVisualization in class AbstractBackgroundImageVisualizerindex - the index of the variant to usegsom - the GrowingSOM to take build the visualisation forwidth - the desired width of the image, in pixelsheight - the desired height of the image, in pixels.
SOMToolboxException
private ArrayList<UnitPair> createKNNBased(GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
SOMToolboxException
private ArrayList<UnitPair> createRadiusBased(GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
SOMToolboxException
protected String getCacheKey(GrowingSOM gsom,
int index,
int width,
int height)
AbstractBackgroundImageVisualizer
getCacheKey in class AbstractBackgroundImageVisualizer
public HashMap<String,BufferedImage> getVisualizationFlavours_K(int index,
GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
SOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours_R(int index,
GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
SOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int index,
GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
AbstractBackgroundImageVisualizer
getVisualizationFlavours in interface BackgroundImageVisualizergetVisualizationFlavours in class AbstractBackgroundImageVisualizerSOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int index,
GrowingSOM gsom,
int width,
int height,
int maxFlavours)
throws SOMToolboxException
AbstractBackgroundImageVisualizerAbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int).
getVisualizationFlavours in interface BackgroundImageVisualizergetVisualizationFlavours in class AbstractBackgroundImageVisualizerSOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int index,
GrowingSOM gsom,
int width,
int height,
Map<String,String> flavourParameters)
throws SOMToolboxException
AbstractBackgroundImageVisualizerAbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int).
getVisualizationFlavours in interface BackgroundImageVisualizergetVisualizationFlavours in class AbstractBackgroundImageVisualizerSOMToolboxExceptionpublic String[] needsAdditionalFiles()
BackgroundImageVisualizer
needsAdditionalFiles in interface BackgroundImageVisualizerneedsAdditionalFiles in class AbstractBackgroundImageVisualizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||