Kernel Density Estimate Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public sealed class KernelDensityEstimate- Inheritance
- Object → KernelDensityEstimate
Remarks
Created by KernelDensity.Fit, FitReflected or FitTransformed. Observations and weights are copied when fitting. Queries, densities and grids use original coordinates. Bandwidths and bandwidth-selection metadata use fitting coordinates: original units for ordinary and reflected fits, and latent units for transformed fits. Custom kernels must be stable and safe for concurrent evaluation.
Reflection uses closed support endpoints; transformed observations must lie strictly inside the declared bounds. Direct distribution conversion requires the built-in Gaussian kernel. FFT grids are available only for ordinary Gaussian fits and must be requested explicitly.
Properties
| Bandwidth | Gets the adjusted bandwidth used for evaluation, in fitting coordinates. |
| Bandwidth | Gets the factor applied to UnadjustedBandwidth. |
| Bandwidth | Gets the selection rule, or Custom for a supplied bandwidth. |
| Bandwidth | Gets the resolved bandwidth-search lower bound before adjustment, or null for a method without a search. |
| Bandwidth | Gets the resolved bandwidth-search upper bound before adjustment, or null for a method without a search. |
| Bandwidth | Gets whether bandwidth selection returned an endpoint of its search interval. |
| Effective | Gets the effective sample size, 1 / sum of squared normalized observation masses. |
| Has | Gets whether a weight vector was supplied when fitting. |
| Kernel | Gets the kernel used for evaluation. |
| Positive | Gets the number of observations with positive mass, excluding zero-weight entries. |
| Reflection | Gets the reflection support, or null when no reflection is used. |
| Sample | Gets the number of supplied observations, including zero-weight entries. |
| Support | Gets the declared original-coordinate support bounds. |
| Transformation | Gets the transformation used for fitting, or null for ordinary or reflected estimates. |
| Unadjusted | Gets the supplied or selected bandwidth before adjustment, in fitting coordinates. |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Evaluate( | Evaluates the fitted density at a point. |
| Evaluate( | Evaluates the fitted density at a collection of points. |
| Evaluate | Evaluates the fitted density directly on an equally spaced grid. |
| Evaluate | Evaluates the fitted density on an equally spaced grid. |
| Evaluate | Evaluates the natural logarithm of the fitted density at a point. |
| Evaluate | Evaluates natural log-density at a collection of query points. |
| Get | Serves as the default hash function. (Inherited from Object) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| ToDistribution | Creates the direct probability distribution represented by this Gaussian KDE. |
| ToPiecewise | Creates a finite-grid piecewise approximation using direct evaluation. |
| ToPiecewise | Creates a finite-grid, piecewise approximation to this density. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |