public class KnnKernelDensityPlotter extends AbstractKernelDensityPlotter
AbstractKernelDensityPlotter.KDenseStyle, AbstractKernelDensityPlotter.KernelFigure
Pixel1dPlotter.BinArray, Pixel1dPlotter.Pixel1dPlan
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.Double> |
KNN_CKEY
Config key for number of nearest neighbours.
|
static ConfigKey<BinSizer> |
MAXSIZER_CKEY
Config key for maximum smoothing width configuration.
|
static ReportKey<java.lang.Double> |
MAXWIDTH_RKEY
Report key for actual maximum smoothing width.
|
static ConfigKey<BinSizer> |
MINSIZER_CKEY
Config key for minimum smoothing width.
|
static ReportKey<java.lang.Double> |
MINWIDTH_RKEY
Report key for actual minimum smoothing width.
|
static ConfigKey<java.lang.Boolean> |
SYMMETRIC_CKEY
Config key for determining symmetry of KNN search.
|
BINS_KEY, THICK_KEY
KERNEL_KEY, SMOOTHSIZER_KEY, SMOOTHWIDTH_KEY
Constructor and Description |
---|
KnnKernelDensityPlotter(FloatingCoord xCoord,
boolean hasWeight,
ConfigKey<Normalisation> normKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractKernelDensityPlotter.KernelFigure |
createKernelFigure(ConfigMap config)
Constructs an object for plot-time kernel construction based on
a particular config map.
|
protected ConfigKey[] |
getKernelConfigKeys()
Returns a list of keys that specify how the smoothing kernel
will be configured.
|
java.lang.String |
getPlotterDescription()
Returns an XML description of this plotter.
|
createStyle, extendPixel1dCoordinateRanges, getLayerOpt, getPixel1dReport, getPixelPadding, getStyleKeys, paintBins
calculatePixelPlan, createKernel, createLayer, getCoordGroup, getDataBins, getEffectiveExtent, getPixelWidth, getPlotterIcon, getPlotterName, getWeightCoordIndex, hasReports, readBins
public static final ReportKey<java.lang.Double> MINWIDTH_RKEY
public static final ReportKey<java.lang.Double> MAXWIDTH_RKEY
public static final ConfigKey<java.lang.Double> KNN_CKEY
public static final ConfigKey<java.lang.Boolean> SYMMETRIC_CKEY
public static final ConfigKey<BinSizer> MINSIZER_CKEY
public KnnKernelDensityPlotter(FloatingCoord xCoord, boolean hasWeight, ConfigKey<Normalisation> normKey)
xCoord
- X axis coordinatehasWeight
- true to permit histogram weightingnormKey
- config key for normalisation optionspublic java.lang.String getPlotterDescription()
Plotter
Note: really this should appear at the LayerType level.
protected ConfigKey[] getKernelConfigKeys()
AbstractKernelDensityPlotter
getKernelConfigKeys
in class AbstractKernelDensityPlotter
protected AbstractKernelDensityPlotter.KernelFigure createKernelFigure(ConfigMap config) throws ConfigException
AbstractKernelDensityPlotter
createKernelFigure
in class AbstractKernelDensityPlotter
config
- config map with kernel config keys in itConfigException
AbstractKernelDensityPlotter.getKernelConfigKeys()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.