public abstract class DiscreteKernel extends AbstractKernel
AbstractKernel is the super class of all kernels.
However, no concrete kernel implementations should extend the abstract class
AbstractKernel directly.
ContinousKernel is the super class of all continuous kernels.
All continuous kernels should extend ContinuousKernel.
DiscreteKernel is the super class of all discrete kernels.
All discrete kernels should extend DiscreteKernel.
AbstractKernel,
ContinuousKernel| Modifier and Type | Field and Description |
|---|---|
static OutOfBoundsPolicy |
DEFAULT_OOB_POLICY
The default
OutOfBoundsPolicy for a
DiscreteKernel. |
static int |
DEFAULT_WIDTH
The default width for a
DiscreteKernel. |
| Constructor and Description |
|---|
DiscreteKernel() |
| Modifier and Type | Method and Description |
|---|---|
abstract double[] |
getKernel()
Returns the discrete representation of this kernel.
|
abstract boolean |
isValidWidth(int theWidth) |
abstract AbstractKernel |
setOutOfBoundsPolicy(OutOfBoundsPolicy theOutOfBoundsPolicy) |
abstract AbstractKernel |
setWidth(int theWidth) |
applyTo, applyTo, getGuiText, getHasDelay, getHasOOBP, getHasWidth, getNrExtraFields, getShortText, toStringpublic static final int DEFAULT_WIDTH
DiscreteKernel.public static final OutOfBoundsPolicy DEFAULT_OOB_POLICY
OutOfBoundsPolicy for a
DiscreteKernel.public abstract AbstractKernel setOutOfBoundsPolicy(OutOfBoundsPolicy theOutOfBoundsPolicy)
public abstract AbstractKernel setWidth(int theWidth)
public abstract boolean isValidWidth(int theWidth)
public abstract double[] getKernel()