public class KernelDensityEstimator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double[] |
dens
Result storage: density
|
private double[] |
var
Result storage: variance / quality
|
Constructor and Description |
---|
KernelDensityEstimator(double[] data,
double min,
double max,
KernelDensityFunction kernel,
int window,
double epsilon)
Initialize and execute kernel density estimation.
|
KernelDensityEstimator(double[] data,
KernelDensityFunction kernel,
double epsilon)
Process an array of data
|
Modifier and Type | Method and Description |
---|---|
double[] |
getDensity()
Retrieve density array (NO copy)
|
double[] |
getVariance()
Retrieve variance/quality array (NO copy)
|
private void |
process(double[] data,
double min,
double max,
KernelDensityFunction kernel,
int window,
double epsilon)
Process a new array
|
private double[] dens
private double[] var
public KernelDensityEstimator(double[] data, double min, double max, KernelDensityFunction kernel, int window, double epsilon)
data
- data to use (must be sorted!)min
- minimum valuemax
- maximum valuekernel
- Kernel function to usewindow
- window sizeepsilon
- Precision thresholdpublic KernelDensityEstimator(double[] data, KernelDensityFunction kernel, double epsilon)
data
- data to processkernel
- Kernel function to use.epsilon
- Precision thresholdprivate void process(double[] data, double min, double max, KernelDensityFunction kernel, int window, double epsilon)
data
- data to use (must be sorted!)min
- minimum valuemax
- maximum valuekernel
- Kernel function to usewindow
- window sizeepsilon
- Precision thresholdpublic double[] getDensity()
public double[] getVariance()
Copyright © 2019 ELKI Development Team. License information.