public class EntropyVisualizer extends AbstractMatrixVisualizer implements QualityMeasureVisualizer
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel
Modifier and Type | Field and Description |
---|---|
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 |
maximumMatrixValue, minimumMatrixValue, palette
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
CACHE_KEY_SECTION_SEPARATOR, DEFAULT_BACKGROUND_VISUALIZATION_SCALE
Constructor and Description |
---|
EntropyVisualizer() |
Modifier and Type | Method and Description |
---|---|
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.
|
computeHitHistogram, computeSpline, constrainWithinPalette, createImage, drawContour, getCurrentPalette, getMaximumMatrixValue, getMinimumMatrixValue, getPalette, getPreferredPaletteName, getVisualisationSpecificCacheKey, getVisualization, invalidateCache, isInterpolate, reversePalette, setDefaultInterpolate, setInterpolate, setPalette
buildCacheKey, checkNeededObjectsAvailable, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, escapeFileName, getCache, getCacheKey, getControlPanel, getDefaultVisualisationFileName, getDefaultVisualisationFileName, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVariantException, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, invalidateCache, logImageCache, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControlPanel, getDefaultVisualisationFileName, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVisualization, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener
compareTo
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
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
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 paintedprivate 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)