|
||||||||||
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.AbstractMatrixVisualizer
at.tuwien.ifs.somtoolbox.visualization.EntropyVisualizer
public class EntropyVisualizer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
---|
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel |
Field Summary | |
---|---|
private java.util.ArrayList<java.lang.Double> |
entropyclass_list
|
private java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Integer>> |
entropyclassnames_list
|
SOMRegion |
MAXENTROPY_REGION
|
(package private) double |
min_visible_class
|
SOMRegion |
MINENTROPY_REGION
|
protected java.util.Hashtable<java.lang.String,RegionManager> |
regionCache
|
private RegionManager |
regionManager
|
private int |
zoom
|
Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractMatrixVisualizer |
---|
maximumMatrixValue, minimumMatrixValue, palette |
Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
---|
cache, CACHE_KEY_SEPARATOR, contourInterpolationMode, contourMode, controlPanel, currentZDimSlice, inputObjects, 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 |
---|
CACHE_KEY_SECTION_SEPARATOR, DEFAULT_BACKGROUND_VISUALIZATION_SCALE |
Constructor Summary | |
---|---|
EntropyVisualizer()
|
Method Summary | |
---|---|
double |
ClassEntropy(int index)
returns the entropy for class with 'index' |
java.lang.String[][] |
ClassEntropyNames(int index)
returns every other class+hits contained in the regions with classmembers from the given index, or null if index exceeds the possible number of classes |
java.awt.image.BufferedImage |
createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image. |
void |
fillRegions(int index,
java.awt.Graphics2D g)
Fills the Regions |
private java.awt.Color |
getBestFittingColor(double c1,
double max)
Spreads the current Region Entropy Error along the whole Palette Interval. |
double |
getMaximumEntropy()
returns the maximum entropy regions value as double;F |
java.lang.String[][] |
getMaximumEntropyRegionNames()
returns the Maximum Entropy Region's Class Names |
double |
getMinimumEntropy()
returns the minimum entropy regions value as double; |
double |
getPercOfZeroEntropyRegions()
returns the percentage of regions with 0 Entropy |
private void |
mergeClasses(java.util.ArrayList<java.lang.String[][]> target)
helper method: go through all regions in the arraylist(all of which have the same index) and count classnames and hits. |
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractMatrixVisualizer |
---|
computeHitHistogram, computeSpline, constrainWithinPalette, createImage, drawContour, getCurrentPalette, getMaximumMatrixValue, getMinimumMatrixValue, getPalette, getPreferredPaletteName, getVisualisationSpecificCacheKey, getVisualization, invalidateCache, isInterpolate, reversePalette, setDefaultInterpolate, setInterpolate, setPalette |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
private int zoom
double min_visible_class
public final SOMRegion MAXENTROPY_REGION
public final SOMRegion MINENTROPY_REGION
protected java.util.Hashtable<java.lang.String,RegionManager> regionCache
private RegionManager regionManager
private java.util.ArrayList<java.lang.Double> entropyclass_list
private java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Integer>> entropyclassnames_list
Constructor Detail |
---|
public EntropyVisualizer()
Method Detail |
---|
public java.awt.image.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
public void fillRegions(int index, java.awt.Graphics2D g)
index
- Index specifies the Class to be displayed, if index is set to -1, all the classes are paintedprivate java.awt.Color getBestFittingColor(double c1, double max)
public double getMaximumEntropy()
public double getMinimumEntropy()
public java.lang.String[][] getMaximumEntropyRegionNames()
public double getPercOfZeroEntropyRegions()
public double ClassEntropy(int index)
private void mergeClasses(java.util.ArrayList<java.lang.String[][]> target)
target
- is an arraylist , containing all different Regions with the specified Class index as Main classpublic java.lang.String[][] ClassEntropyNames(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |