|
||||||||||
| 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 ArrayList<Double> |
entropyclass_list
|
private ArrayList<HashMap<String,Integer>> |
entropyclassnames_list
|
SOMRegion |
MAXENTROPY_REGION
|
(package private) double |
min_visible_class
|
SOMRegion |
MINENTROPY_REGION
|
protected Hashtable<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_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 | |
|---|---|
EntropyVisualizer()
|
|
| Method Summary | |
|---|---|
double |
ClassEntropy(int index)
returns the entropy for class with 'index' |
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 |
BufferedImage |
createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image. |
void |
fillRegions(int index,
Graphics2D g)
Fills the Regions |
private 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 |
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(ArrayList<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, getCacheKey, getCurrentPalette, getMaximumMatrixValue, getMinimumMatrixValue, getPalette, getPreferredPaletteName, getVisualization, invalidateCache, reversePalette, setInterpolate, setPalette |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface at.tuwien.ifs.somtoolbox.visualization.BackgroundImageVisualizer |
|---|
getControlPanel, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVisualization, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener |
| 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 Hashtable<String,RegionManager> regionCache
private RegionManager regionManager
private ArrayList<Double> entropyclass_list
private ArrayList<HashMap<String,Integer>> entropyclassnames_list
| Constructor Detail |
|---|
public EntropyVisualizer()
| 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
public void fillRegions(int index,
Graphics2D g)
index - Index specifies the Class to be displayed, if index is set to -1, all the classes are painted
private Color getBestFittingColor(double c1,
double max)
public double getMaximumEntropy()
public double getMinimumEntropy()
public String[][] getMaximumEntropyRegionNames()
public double getPercOfZeroEntropyRegions()
public double ClassEntropy(int index)
private void mergeClasses(ArrayList<String[][]> target)
target - is an arraylist , containing all different Regions with the specified Class index as Main classpublic String[][] ClassEntropyNames(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||