be.hogent.tarsos.util
Class KernelDensityEstimate.RectangularKernel

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

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

A rectangular kernel function.


Constructor Summary
KernelDensityEstimate.RectangularKernel(double kernelWidth)
           
 
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.RectangularKernel

public KernelDensityEstimate.RectangularKernel(double kernelWidth)
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.