de.erichseifert.gral.data.filters
Class KernelUtils

java.lang.Object
  extended by de.erichseifert.gral.data.filters.KernelUtils

public abstract class KernelUtils
extends Object

Abstract class that provides utility functions which are useful for kernels.


Constructor Summary
KernelUtils()
           
 
Method Summary
static Kernel getBinomial(double variance)
          Returns a Kernel of specified variance with binomial coefficients.
static Kernel getBinomial(int size)
          Returns a Kernel of specified size with binomial coefficients.
static Kernel getUniform(int size, int offset, double value)
          Returns a Kernel with the specified size and offset, filled with a single value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelUtils

public KernelUtils()
Method Detail

getBinomial

public static Kernel getBinomial(double variance)
Returns a Kernel of specified variance with binomial coefficients.

Parameters:
variance - Variance.
Returns:
Kernel.

getBinomial

public static Kernel getBinomial(int size)
Returns a Kernel of specified size with binomial coefficients.

Parameters:
size - Size of the Kernel.
Returns:
Kernel.

getUniform

public static Kernel getUniform(int size,
                                int offset,
                                double value)
Returns a Kernel with the specified size and offset, filled with a single value.

Parameters:
size - Size.
offset - Offset.
value - Value the Kernel is filled with.
Returns:
Kernel.


Copyright © 2009-2010. All Rights Reserved.