Kernel Density Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public static class KernelDensity- Inheritance
- Object → KernelDensity
Remarks
Use the methods in the KernelDensity class to perform kernel density estimation on a variable. Methods for estimating a suitable bandwidth are also available.
KernelDensity also defines several kernels, including the GaussianKernel, UniformKernel (flat top kernel), and EpanechnikovKernel.
Observations must be nonempty and finite. Explicit and adjusted bandwidths must be finite and positive. Automatic selection requires at least two observations with positive spread; a zero interquartile range falls back to population standard deviation. Constant data requires an explicit bandwidth.
Point evaluation propagates NaN queries and returns zero at either infinity. Batch results preserve query order and query labels. Input observations and their labels are not modified.
Methods
| Estimate( | Estimates densities at supplied points using a normalized custom kernel. |
| Estimate( | Estimates the density at one point using a normalized custom kernel. |
| Estimate( | Estimates the density of the input |
| Estimate( | Estimates the density of the input |
| Estimate( | Estimates the density of the input. |
| Estimate | Estimates the bandwidth for kernel density estimation using the specified data and method. |
| Estimate | Estimates the probability density of the input variable. |
| Estimate | Estimates densities at the supplied points using an Epanechnikov kernel. |
| Estimate | Estimates the density at one point using an Epanechnikov kernel. |
| Estimate | Estimates densities at the supplied points using a Gaussian kernel. |
| Estimate | Estimates the density at one point using a Gaussian kernel. |
| Estimate | Estimates a Gaussian normal-reference bandwidth in observation units. |
| Estimate | Estimates densities at the supplied points using a triangular kernel. |
| Estimate | Estimates the density at one point using a triangular kernel. |
| Estimate | Estimates densities at the supplied points using a uniform kernel. |
| Estimate | Estimates the density at one point using a uniform kernel. |
| Fit | Fits a reusable kernel density estimate with optional relative observation weights. |
| Fit | Fits a Gaussian density with reflection boundary correction. |
| Fit | Fits a boundary-corrected density in log or logit coordinates. |
| Normal | Returns the kernel-specific normal reference bandwidth. |
| Scott | Returns the bandwidth for kernel density estimation based on Scott's rule. |
| Silverman | Returns the bandwidth for kernel density estimation based on Silverman's rule. |
Fields
| Biweight | Represents a bi-weight kernel. |
| Cosine | Represents a cosine kernel. |
| Cosine | Represents an alternative cosine kernel. |
| Epanechnikov | Represents an Epanechnikov kernel. |
| Gaussian | Represents a Gaussian kernel. |
| Logistic | Represents a logistic kernel. |
| Triangular | Represents a kernel shaped like a triangle. |
| Tricubic | Represents a tri-cubic kernel. |
| Triweight | Represents a tri-weight kernel. |
| Uniform | Represents a uniform kernel, shaped like a rectangle. |