at.tuwien.ifs.somtoolbox.visualization
Class SmoothedCountHistograms
java.lang.Object
at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
at.tuwien.ifs.somtoolbox.visualization.AbstractMatrixVisualizer
at.tuwien.ifs.somtoolbox.visualization.SmoothedCountHistograms
- All Implemented Interfaces:
- BackgroundImageVisualizer, MatrixVisualizer, Comparable<BackgroundImageVisualizer>
public class SmoothedCountHistograms
- extends AbstractMatrixVisualizer
visualizes counts (e.g. number of documents per unit) in an Islands of Music like manner, i.e. like SDH with s=1
- Version:
- $Id: SmoothedCountHistograms.java 3590 2010-05-21 10:43:45Z mayer $
- Author:
- Thomas Lidy
Field Summary |
(package private) double |
maxValue
|
(package private) double |
minValue
|
(package private) double[][] |
sdh
|
(package private) int |
xSize
|
(package private) int |
ySize
|
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 |
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 at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
appendToCacheKey, buildCacheKey, checkNeededObjectsAvailable, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, getControlPanel, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVariantException, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, invalidateCache, logImageCache, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sdh
double[][] sdh
xSize
int xSize
ySize
int ySize
maxValue
double maxValue
minValue
double minValue
SmoothedCountHistograms
public SmoothedCountHistograms()
setHistogram
public void setHistogram(double[][] hist)
normalize
private void normalize()
createVisualization
public BufferedImage createVisualization(int index,
GrowingSOM gsom,
int width,
int height)
throws SOMToolboxException
- Description copied from class:
AbstractBackgroundImageVisualizer
- Creates a visualisation image. Subclasses must implement this method.
- Specified by:
createVisualization
in class AbstractBackgroundImageVisualizer
- Parameters:
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.
- Returns:
- an image for this visualisation.
- Throws:
SOMToolboxException