biosim.core.util
Class KernelDensityEstimator

java.lang.Object
  extended by biosim.core.util.KernelDensityEstimator

public class KernelDensityEstimator
extends java.lang.Object


Nested Class Summary
static class KernelDensityEstimator.NormalKernel
           
 
Field Summary
 int dimensionality
           
 Kernel kernel
           
 java.util.ArrayList<double[]> samples
           
 java.util.ArrayList<java.lang.Double> weights
           
 
Constructor Summary
KernelDensityEstimator(int dim, Kernel kernel)
           
 
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
 

Field Detail

weights

public java.util.ArrayList<java.lang.Double> weights

samples

public java.util.ArrayList<double[]> samples

dimensionality

public int dimensionality

kernel

public Kernel kernel
Constructor Detail

KernelDensityEstimator

public KernelDensityEstimator(int dim,
                              Kernel kernel)
Method Detail

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)