Class FixedKernelDensityPlotter
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter<AbstractKernelDensityPlotter.KDenseStyle>
uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter
uk.ac.starlink.ttools.plot2.layer.FixedKernelDensityPlotter
- All Implemented Interfaces:
Plotter<AbstractKernelDensityPlotter.KDenseStyle>
Kernel density plotter that uses fixed-width kernels.
- Since:
- 30 Mar 2015
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter
AbstractKernelDensityPlotter.KDenseStyle, AbstractKernelDensityPlotter.KernelFigure
Nested classes/interfaces inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter
Pixel1dPlotter.BinArray, Pixel1dPlotter.Pixel1dPlan
-
Field Summary
Fields inherited from class uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter
BINS_KEY, NORMALISE_KEY, THICK_KEY
Fields inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter
KERNEL_KEY, SMOOTHSIZER_KEY, SMOOTHWIDTH_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionFixedKernelDensityPlotter
(FloatingCoord xCoord, boolean hasWeight, PerUnitConfigKey<Unit> unitKey) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateKernelFigure
(ConfigMap config) Constructs an object for plot-time kernel construction based on a particular config map.protected ConfigKey<?>[]
Returns a list of keys that specify how the smoothing kernel will be configured.Returns an XML description of this plotter.Methods inherited from class uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter
createStyle, extendPixel1dCoordinateRanges, getCombiner, getLayerOpt, getPixel1dReport, getPixelPadding, getRangeStyleKey, getStyleKeys, isY, paintBins
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter
createKernel, createLayer, getCombinerKey, getCoordGroup, getDataBins, getEffectiveExtent, getPixelWidth, getPlotterIcon, getPlotterName, getWeightCoordIndex, getWeightingDescription, hasReports, readBins
-
Constructor Details
-
FixedKernelDensityPlotter
public FixedKernelDensityPlotter(FloatingCoord xCoord, boolean hasWeight, PerUnitConfigKey<Unit> unitKey) Constructor.- Parameters:
xCoord
- X axis coordinatehasWeight
- true to permit histogram weightingunitKey
- config key to select X axis physical units, or null if no unit selection required
-
-
Method Details
-
getKernelConfigKeys
Description copied from class:AbstractKernelDensityPlotter
Returns a list of keys that specify how the smoothing kernel will be configured.- Specified by:
getKernelConfigKeys
in classAbstractKernelDensityPlotter
- Returns:
- list of implementation-specific kernel config keys
-
createKernelFigure
Description copied from class:AbstractKernelDensityPlotter
Constructs an object for plot-time kernel construction based on a particular config map.- Specified by:
createKernelFigure
in classAbstractKernelDensityPlotter
- Parameters:
config
- config map with kernel config keys in it- See Also:
-
getPlotterDescription
Description copied from interface:Plotter
Returns an XML description of this plotter.Note: really this should appear at the LayerType level.
- Returns:
- one or more <p> elements
-