|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.Projection1DVisualizer<NV>
de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.Projection1DHistogramVisualizer<NV>
NV
- Type of the DatabaseObject being visualized.public class Projection1DHistogramVisualizer<NV extends NumberVector<NV,?>>
Generates a SVG-Element containing a histogram representing the distribution of the database's objects.
Field Summary | |
---|---|
static String |
BIN
Generic tag to indicate the type of element. |
private int |
bins
Number of bins to use in the histogram. |
private boolean |
curves
Internal storage of the curves flag. |
private static int |
DEFAULT_BINS
Number of bins to use in histogram. |
static OptionID |
HISTOGRAM_BINS_ID
Option ID for parameter HISTOGRAM_BINS_PARAM |
private IntParameter |
HISTOGRAM_BINS_PARAM
Parameter to specify the number of bins to use in histogram. |
private static String |
NAME
Name for this visualizer. |
private Flag |
STYLE_CURVES_FLAG
Flag to specify the "curves" rendering style. |
static OptionID |
STYLE_CURVES_ID
OptionID for STYLE_CURVES_FLAG . |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer |
---|
context, metadata |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
---|
LEVEL_BACKGROUND, LEVEL_FOREGROUND, LEVEL_INTERACTIVE, LEVEL_STATIC, META_LEVEL, META_NAME, META_NOTHUMB, META_VISIBLE, META_VISIBLE_DEFAULT |
Constructor Summary | |
---|---|
Projection1DHistogramVisualizer(Parameterization config)
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
void |
init(VisualizerContext context)
Initialization. |
private void |
setupCSS(SVGPlot svgp,
int numc)
Generate the needed CSS classes. |
Element |
visualize(SVGPlot svgp,
VisualizationProjection proj,
double width,
double height)
Returns an Element representing a visualization. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer |
---|
addRedrawListener, fireRedrawEvent, getMetadata, init, removeRedrawListener, requestRedraw, setLevel |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
---|
addRedrawListener, getMetadata, removeRedrawListener |
Field Detail |
---|
public static final OptionID STYLE_CURVES_ID
STYLE_CURVES_FLAG
.
private final Flag STYLE_CURVES_FLAG
Key: -histogram.curves
private boolean curves
private static final int DEFAULT_BINS
public static final OptionID HISTOGRAM_BINS_ID
HISTOGRAM_BINS_PARAM
private final IntParameter HISTOGRAM_BINS_PARAM
Key: -projhistogram.bins
Default: 20
private int bins
private static final String NAME
public static final String BIN
Constructor Detail |
---|
public Projection1DHistogramVisualizer(Parameterization config)
Parameterizable
config
- ParameterizationMethod Detail |
---|
public void init(VisualizerContext context)
context
- context.private void setupCSS(SVGPlot svgp, int numc)
svgp
- Plot contextnumc
- Number of classes we need.public Element visualize(SVGPlot svgp, VisualizationProjection proj, double width, double height)
ProjectedVisualizer
svgp
- plot to contain the returned Element.proj
- projection to usewidth
- Width of plotheight
- Height of plot
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |