@Alias(value={"biweight","quartic"}) public final class BiweightKernelDensityFunction extends java.lang.Object implements KernelDensityFunction
Modifier and Type | Class and Description |
---|---|
static class |
BiweightKernelDensityFunction.Parameterizer
Parameterization stub.
|
Modifier and Type | Field and Description |
---|---|
static double |
CANONICAL_BANDWIDTH
Canonical bandwidth: 35^(1/5)
|
static BiweightKernelDensityFunction |
KERNEL
Static instance.
|
static double |
R
R constant.
|
static double |
STDDEV
Standard deviation.
|
Modifier | Constructor and Description |
---|---|
private |
BiweightKernelDensityFunction()
Private, empty constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
canonicalBandwidth()
Get the canonical bandwidth for this kernel.
|
double |
density(double delta)
Density contribution of a point at the given relative distance
delta >= 0 . |
double |
getR()
Get the R integral of the kernel, \int K^2(x) dx
TODO: any better name for this?
|
double |
standardDeviation()
Get the standard deviation of the kernel function.
|
public static final BiweightKernelDensityFunction KERNEL
@Reference(authors="J. S. Marron, D. Nolan", title="Canonical kernels for density estimation", booktitle="Statistics & Probability Letters, Volume 7, Issue 3", url="https://doi.org/10.1016/0167-7152(88)90050-8", bibkey="doi:10.1016/0167-71528890050-8") public static final double CANONICAL_BANDWIDTH
public static final double STDDEV
public static final double R
private BiweightKernelDensityFunction()
public double density(double delta)
KernelDensityFunction
delta >= 0
.
Note that for delta < 0
, in particular for delta < 1
, the
results may become invalid. So usually, you will want to invoke this as:
kernel.density(Math.abs(delta))
density
in interface KernelDensityFunction
delta
- Relative distancepublic double canonicalBandwidth()
KernelDensityFunction
Note: R uses a different definition of "canonical bandwidth", and also uses differently scaled kernels.
canonicalBandwidth
in interface KernelDensityFunction
public double standardDeviation()
KernelDensityFunction
standardDeviation
in interface KernelDensityFunction
public double getR()
KernelDensityFunction
TODO: any better name for this?
getR
in interface KernelDensityFunction
Copyright © 2019 ELKI Development Team. License information.