biosim.core.util
Class KernelDensityEstimator
java.lang.Object
biosim.core.util.KernelDensityEstimator
public class KernelDensityEstimator
- extends java.lang.Object
Method Summary |
void |
add(double[] sample)
|
void |
add(double[] sample,
double weight)
|
double |
estimate(double[] target,
double bandwidth)
|
static void |
main(java.lang.String[] args)
|
int |
numSamples()
|
void |
setWeight(double[] sample,
double weight)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
weights
public java.util.ArrayList<java.lang.Double> weights
samples
public java.util.ArrayList<double[]> samples
dimensionality
public int dimensionality
kernel
public Kernel kernel
KernelDensityEstimator
public KernelDensityEstimator(int dim,
Kernel kernel)
numSamples
public int numSamples()
add
public void add(double[] sample)
add
public void add(double[] sample,
double weight)
setWeight
public void setWeight(double[] sample,
double weight)
estimate
public double estimate(double[] target,
double bandwidth)
main
public static void main(java.lang.String[] args)