KernelDensityEstimate.EvaluateGrid Method

Evaluates the fitted density on an equally spaced grid.

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public KernelDensityGrid EvaluateGrid(
	KernelDensityGridOptions? options = null
)

Parameters

options  KernelDensityGridOptions  (Optional)
Grid settings, or null for 512 points and three adjusted bandwidths of padding.

Return Value

KernelDensityGrid
Explicit coordinates, density values and fit metadata. Both result vectors are caller-owned.

Remarks

Grid bounds affect evaluation only. Density values are not renormalized over the grid. Direct evaluation is the default. Non-null FftOptions explicitly requests a Gaussian FFT approximation, with resolution, truncation and workspace controls. No fallback is performed.

Exceptions

NotSupportedExceptionFFT controls are supplied for a kernel other than the built-in Gaussian kernel.
ArgumentExceptionThe resolved bounds do not have a finite positive difference, the requested coordinates cannot be represented as distinct values, or FFT geometry exceeds the workspace limit or representable resolution.

See Also