KernelDensityEstimate.ToDistribution Method

Creates the direct probability distribution represented by this fitted Gaussian KDE.

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public KernelDensityDistribution ToDistribution()

Return Value

KernelDensityDistribution
A Gaussian mixture distribution sharing this estimate's immutable observation snapshot.

Remarks

The PDF, CDF, moments and samples use the full Gaussian mixture without a finite grid. Use ToPiecewiseDistribution(KernelDensityGridOptions) for an explicitly normalized finite-grid approximation.

Exceptions

NotSupportedExceptionThe estimate does not use the built-in GaussianKernel.

See Also