de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d
Class P1DHistogramVisualizer.Factory<NV extends NumberVector<NV,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisFactory
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.P1DHistogramVisualizer.Factory<NV>
Type Parameters:
NV - Number vector type
All Implemented Interfaces:
ResultProcessor, InspectionUtilFrequentlyScanned, Parameterizable, VisFactory
Enclosing class:
P1DHistogramVisualizer<NV extends NumberVector<NV,?>>

public static class P1DHistogramVisualizer.Factory<NV extends NumberVector<NV,?>>
extends AbstractVisFactory

Visualizer factory for 1D histograms


Nested Class Summary
static class P1DHistogramVisualizer.Factory.Parameterizer<NV extends NumberVector<NV,?>>
          Parameterization class.
 
Field Summary
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
          Parameter to specify the number of bins to use in histogram.
static OptionID STYLE_CURVES_ID
          Flag to specify the "curves" rendering style.
 
Constructor Summary
P1DHistogramVisualizer.Factory(boolean curves, int bins)
          Constructor.
 
Method Summary
 boolean allowThumbnails(VisualizationTask task)
          Test whether to do a thumbnail or a full rendering.
 Visualization makeVisualization(VisualizationTask task)
          Produce a visualization instance for the given task
 void processNewResult(HierarchicalResult baseResult, Result result)
          Add visualizers for the given result (tree) to the context.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisFactory
makeVisualizationOrThumbnail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLE_CURVES_ID

public static final OptionID STYLE_CURVES_ID
Flag to specify the "curves" rendering style.

Key: -histogram.curves


HISTOGRAM_BINS_ID

public static final OptionID HISTOGRAM_BINS_ID
Parameter to specify the number of bins to use in histogram.

Key: -projhistogram.bins Default: 20


curves

private boolean curves
Internal storage of the curves flag.


DEFAULT_BINS

private static final int DEFAULT_BINS
Number of bins to use in histogram.

See Also:
Constant Field Values

bins

private int bins
Number of bins to use in the histogram.

Constructor Detail

P1DHistogramVisualizer.Factory

public P1DHistogramVisualizer.Factory(boolean curves,
                                      int bins)
Constructor.

Parameters:
curves -
bins -
Method Detail

makeVisualization

public Visualization makeVisualization(VisualizationTask task)
Description copied from interface: VisFactory
Produce a visualization instance for the given task

Specified by:
makeVisualization in interface VisFactory
Specified by:
makeVisualization in class AbstractVisFactory
Parameters:
task - Visualization task
Returns:
Visualization

processNewResult

public void processNewResult(HierarchicalResult baseResult,
                             Result result)
Description copied from interface: VisFactory
Add visualizers for the given result (tree) to the context.

Parameters:
baseResult - Context to work with
result - Result to process

allowThumbnails

public boolean allowThumbnails(VisualizationTask task)
Description copied from class: AbstractVisFactory
Test whether to do a thumbnail or a full rendering. Override this with "false" to disable thumbnails!

Overrides:
allowThumbnails in class AbstractVisFactory
Parameters:
task - Task requested

Release 0.4.0 (2011-09-20_1324)