public class KnnKernelDensityPlotter extends AbstractKernelDensityPlotter
AbstractKernelDensityPlotter.KDenseStyle, AbstractKernelDensityPlotter.KernelFigurePixel1dPlotter.BinArray, Pixel1dPlotter.Pixel1dPlan| Modifier and Type | Field and Description |
|---|---|
static ConfigKey<Double> |
KNN_CKEY
Config key for number of nearest neighbours.
|
static ConfigKey<BinSizer> |
MAXSIZER_CKEY
Config key for maximum smoothing width configuration.
|
static ReportKey<Double> |
MAXWIDTH_RKEY
Report key for actual maximum smoothing width.
|
static ConfigKey<BinSizer> |
MINSIZER_CKEY
Config key for minimum smoothing width.
|
static ReportKey<Double> |
MINWIDTH_RKEY
Report key for actual minimum smoothing width.
|
static ConfigKey<Boolean> |
SYMMETRIC_CKEY
Config key for determining symmetry of KNN search.
|
BINS_KEY, NORMALISE_KEY, THICK_KEYKERNEL_KEY, SMOOTHSIZER_KEY, SMOOTHWIDTH_KEY| Constructor and Description |
|---|
KnnKernelDensityPlotter(FloatingCoord xCoord,
boolean hasWeight,
PerUnitConfigKey<Unit> unitKey)
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.
|
String |
getPlotterDescription()
Returns an XML description of this plotter.
|
createStyle, extendPixel1dCoordinateRanges, getCombiner, getLayerOpt, getPixel1dReport, getPixelPadding, getRangeStyleKey, getStyleKeys, isY, paintBinscreateKernel, createLayer, getCombinerKey, getCoordGroup, getDataBins, getEffectiveExtent, getPixelWidth, getPlotterIcon, getPlotterName, getWeightCoordIndex, getWeightingDescription, hasReports, readBinspublic static final ReportKey<Double> MINWIDTH_RKEY
public static final ReportKey<Double> MAXWIDTH_RKEY
public static final ConfigKey<Double> KNN_CKEY
public static final ConfigKey<Boolean> SYMMETRIC_CKEY
public static final ConfigKey<BinSizer> MINSIZER_CKEY
public KnnKernelDensityPlotter(FloatingCoord xCoord, boolean hasWeight, PerUnitConfigKey<Unit> unitKey)
xCoord - X axis coordinatehasWeight - true to permit histogram weightingunitKey - config key to select X axis physical units,
or null if no unit selection requiredpublic String getPlotterDescription()
PlotterNote: really this should appear at the LayerType level.
protected ConfigKey<?>[] getKernelConfigKeys()
AbstractKernelDensityPlottergetKernelConfigKeys in class AbstractKernelDensityPlotterprotected AbstractKernelDensityPlotter.KernelFigure createKernelFigure(ConfigMap config) throws ConfigException
AbstractKernelDensityPlottercreateKernelFigure in class AbstractKernelDensityPlotterconfig - config map with kernel config keys in itConfigExceptionAbstractKernelDensityPlotter.getKernelConfigKeys()Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.