|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.Kernel1ds
public class Kernel1ds
Utility class containing various implementations of the Kernel1d interface. The kernels returned by the factory methods in this class are in general normalised to unity.
Field Summary | |
---|---|
static Kernel1d |
DELTA
Delta function kernel. |
Method Summary | |
---|---|
static Kernel1d |
createCos2Kernel(double width)
Returns a kernel based on the cosine squared function. |
static Kernel1d |
createCosKernel(double width)
Returns a kernel based on the cosine function. |
static Kernel1d |
createEpanechnikovKernel(double width)
Returns an Epanechnikov kernel. |
static Kernel1d |
createGaussianKernel(double sigma)
Returns an untruncated Gaussian kernel. |
static Kernel1d |
createLinearKernel(double width)
Returns a linear (triangular) kernel. |
static Kernel1d |
createSquareKernel(int extent)
Returns a rectangular kernel with a given extent. |
static Kernel1d |
createSymmetricNormalisedKernel(double[] levels,
boolean isSquare)
Creates a symmetric normalised kernel based on a fixed array of function values. |
static Kernel1d |
createTruncatedGaussianKernel(double sigma,
int extent)
Returns a kernel based on the Gaussian function with truncation at a given extent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Kernel1d DELTA
Method Detail |
---|
public static Kernel1d createSquareKernel(int extent)
extent
- half-width of rectangle
public static Kernel1d createCosKernel(double width)
width
- half-width of kernel, corresponding to PI/2
public static Kernel1d createCos2Kernel(double width)
width
- half-width of kernel, corresponding to PI/2
public static Kernel1d createEpanechnikovKernel(double width)
width
- half-width of kernel, corresponding to 1
public static Kernel1d createLinearKernel(double width)
width
- half-width of kernel, corresponding to 1
public static Kernel1d createTruncatedGaussianKernel(double sigma, int extent)
sigma
- standard deviation of kernelextent
- extent of kernel; values beyond this are effectively zero
public static Kernel1d createGaussianKernel(double sigma)
sigma
- standard deviation
public static Kernel1d createSymmetricNormalisedKernel(double[] levels, boolean isSquare)
levels
array gives a list of
the values at x=0, 1 (and -1), 2 (and -2), ....
levels
- kernel function values on 1d grid starting from 0isSquare
- true iff the kernel is considered non-smooth
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |