be.hogent.tarsos.util
Class KernelDensityEstimate.GaussianKernel

java.lang.Object
  extended by be.hogent.tarsos.util.KernelDensityEstimate.GaussianKernel
All Implemented Interfaces:
KernelDensityEstimate.Kernel
Enclosing class:
KernelDensityEstimate

public static class KernelDensityEstimate.GaussianKernel
extends java.lang.Object
implements KernelDensityEstimate.Kernel

A Gaussian kernel function.

Author:
Joren Six

Constructor Summary
KernelDensityEstimate.GaussianKernel(double kernelWidth)
          Construct a kernel with a defined width.
 
Method Summary
 int size()
          The size of the kernel.
 double value(int index)
          Fetch the value for the kernel at a certain index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelDensityEstimate.GaussianKernel

public KernelDensityEstimate.GaussianKernel(double kernelWidth)
Construct a kernel with a defined width.

Parameters:
kernelWidth - The width of the kernel.
Method Detail

value

public double value(int index)
Description copied from interface: KernelDensityEstimate.Kernel
Fetch the value for the kernel at a certain index.

Specified by:
value in interface KernelDensityEstimate.Kernel
Parameters:
index - The index of the previously computed value.
Returns:
The cached value for a certain index.

size

public int size()
Description copied from interface: KernelDensityEstimate.Kernel
The size of the kernel.

Specified by:
size in interface KernelDensityEstimate.Kernel
Returns:
The size of the kernel.