|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.math.statistics.KernelDensityEstimator
public class KernelDensityEstimator
Estimate density given an array of points. Estimates a density using a kernel density estimator. Multiple common Kernel functions are supported.
| Field Summary | |
|---|---|
private double[] |
dens
Result storage: density |
private double[] |
var
Result storage: variance / quality |
| Constructor Summary | |
|---|---|
KernelDensityEstimator(double[] data,
double min,
double max,
KernelDensityFunction kernel,
int windows)
Initialize and execute kernel density estimation. |
|
KernelDensityEstimator(double[] data,
KernelDensityFunction kernel)
Process an array of data |
|
| Method Summary | |
|---|---|
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 windows)
Process a new array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double[] dens
private double[] var
| Constructor Detail |
|---|
public KernelDensityEstimator(double[] data,
double min,
double max,
KernelDensityFunction kernel,
int windows)
data - data to usemin - minimum valuemax - maximum valuekernel - Kernel function to usewindows - window size
public KernelDensityEstimator(double[] data,
KernelDensityFunction kernel)
data - data to processkernel - Kernel function to use.| Method Detail |
|---|
private void process(double[] data,
double min,
double max,
KernelDensityFunction kernel,
int windows)
data - data to usemin - minimum valuemax - maximum valuekernel - Kernel function to usewindows - window sizepublic double[] getDensity()
public double[] getVariance()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||