|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter<AbstractKernelDensityPlotter.KDenseStyle>
uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter
uk.ac.starlink.ttools.plot2.layer.KnnKernelDensityPlotter
public class KnnKernelDensityPlotter
Kernel Density Plotter that uses a variable-width kernel whose width is assigned using K-Nearest-Neighbours counting.
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 | |
---|---|
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. |
Fields inherited from class uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter |
---|
BINS_KEY, THICK_KEY |
Fields inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter |
---|
KERNEL_KEY, SMOOTHSIZER_KEY, SMOOTHWIDTH_KEY |
Constructor Summary | |
---|---|
KnnKernelDensityPlotter(FloatingCoord xCoord,
boolean hasWeight,
ConfigKey<Normalisation> normKey)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter |
---|
createStyle, extendPixel1dCoordinateRanges, getLayerOpt, getPixel1dReport, getPixelPadding, getStyleKeys, paintBins |
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter |
---|
calculatePixelPlan, createKernel, createLayer, getCoordGroup, getDataBins, getEffectiveExtent, getPixelWidth, getPlotterIcon, getPlotterName, getWeightCoordIndex, hasReports, readBins |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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 static final ConfigKey<BinSizer> MAXSIZER_CKEY
Constructor Detail |
---|
public KnnKernelDensityPlotter(FloatingCoord xCoord, boolean hasWeight, ConfigKey<Normalisation> normKey)
xCoord
- X axis coordinatehasWeight
- true to permit histogram weightingnormKey
- config key for normalisation optionsMethod Detail |
---|
public 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 it
ConfigException
AbstractKernelDensityPlotter.getKernelConfigKeys()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |