protected static class OUTRES.KernelDensityEstimator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
dim
Dimensionality of data set
|
(package private) double[] |
epsilons
Epsilon values for different subspace dimensionalities
|
(package private) double |
hopttwo
Optimal bandwidth for a dimensionality of 2
|
(package private) KernelDensityFunction |
kernel
Actual kernel in use
|
(package private) Relation<? extends NumberVector> |
relation
Relation to retrieve data from
|
Constructor and Description |
---|
KernelDensityEstimator(Relation<? extends NumberVector> relation,
double eps)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
adjustedEps(int dim)
Rescale the query radius based on the given dimensionality.
|
protected double |
optimalBandwidth(int dim)
Compute optimal kernel bandwidth
|
protected double |
subspaceDensity(long[] subspace,
DoubleDBIDList neighbors)
Compute density in the given subspace.
|
final KernelDensityFunction kernel
final Relation<? extends NumberVector> relation
final double[] epsilons
final double hopttwo
final int dim
public KernelDensityEstimator(Relation<? extends NumberVector> relation, double eps)
relation
- Relation to apply toprotected double subspaceDensity(long[] subspace, DoubleDBIDList neighbors)
subspace
- Subspaceneighbors
- Neighbor distance listprotected double optimalBandwidth(int dim)
dim
- Dimensionality of subspaceprotected double adjustedEps(int dim)
dim
- DimensionalityCopyright © 2019 ELKI Development Team. License information.