|
||||||||||
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.FlowBorderlineVisualizer
public class FlowBorderlineVisualizer
This class provides two visualizations:
Nested Class Summary | |
---|---|
protected class |
FlowBorderlineVisualizer.FlowBorderlineControlPanel
|
Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
---|
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel |
Field Summary | |
---|---|
private double[][] |
ax
|
private double[][] |
ay
|
static String[] |
FLOWBORDER_SHORT_NAMES
|
private GrowingSOM |
gsom
|
private double |
maxa
|
private double |
sigma
|
private double |
stretchConst
|
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 | |
---|---|
FlowBorderlineVisualizer()
|
Method Summary | |
---|---|
private void |
calculateFlows()
Formel 8, 9 10, 11, 12, 13, 14, 15, 16 |
private void |
clearFlows()
|
BufferedImage |
createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image. |
private double |
df(int x1,
int y1,
int x2,
int y2)
Formel 1 distance in feature space |
private double |
dout(int x1,
int y1,
int x2,
int y2)
Formel 2 distance in output space |
private void |
draw(int mode,
Graphics2D g,
int x,
int y,
double unitWidth,
double stretchBorder)
|
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. |
int |
getPreferredScaleFactor()
Scale for the FlowBorderlineVisualizer needs to be smaller, as the visualisation is made of lines, which
cannot be scaled too much. |
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) . |
private double |
kernel(double dout)
Formel 3 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] FLOWBORDER_SHORT_NAMES
private double sigma
private double stretchConst
private GrowingSOM gsom
private double[][] ax
private double[][] ay
private double maxa
Constructor Detail |
---|
public FlowBorderlineVisualizer()
Method Detail |
---|
private void clearFlows()
public BufferedImage createVisualization(int index, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractBackgroundImageVisualizer
createVisualization
in class AbstractBackgroundImageVisualizer
index
- 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 double df(int x1, int y1, int x2, int y2) throws LayerAccessException, MetricException
LayerAccessException
MetricException
private double dout(int x1, int y1, int x2, int y2)
private double kernel(double dout)
private void calculateFlows() throws LayerAccessException, MetricException
LayerAccessException
MetricException
private void draw(int mode, Graphics2D g, int x, int y, double unitWidth, double stretchBorder)
public int getPreferredScaleFactor()
FlowBorderlineVisualizer
needs to be smaller, as the visualisation is made of lines, which
cannot be scaled too much.
getPreferredScaleFactor
in interface BackgroundImageVisualizer
getPreferredScaleFactor
in class AbstractBackgroundImageVisualizer
protected String getCacheKey(GrowingSOM gsom, int index, int width, int height)
AbstractBackgroundImageVisualizer
getCacheKey
in class AbstractBackgroundImageVisualizer
public HashMap<String,BufferedImage> getVisualizationFlavours(int index, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractBackgroundImageVisualizer
getVisualizationFlavours
in interface BackgroundImageVisualizer
getVisualizationFlavours
in class AbstractBackgroundImageVisualizer
SOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int index, GrowingSOM gsom, int width, int height, int maxFlavours) throws SOMToolboxException
AbstractBackgroundImageVisualizer
AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int)
.
getVisualizationFlavours
in interface BackgroundImageVisualizer
getVisualizationFlavours
in class AbstractBackgroundImageVisualizer
SOMToolboxException
public HashMap<String,BufferedImage> getVisualizationFlavours(int index, GrowingSOM gsom, int width, int height, Map<String,String> flavourParameters) throws SOMToolboxException
AbstractBackgroundImageVisualizer
AbstractBackgroundImageVisualizer.getVisualizationFlavours(int, GrowingSOM, int, int)
.
getVisualizationFlavours
in interface BackgroundImageVisualizer
getVisualizationFlavours
in class AbstractBackgroundImageVisualizer
SOMToolboxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |