ksdensity
Kernel smoothing function estimate.
📝Syntax
[f, xi] = ksdensity(x)
[f, xi] = ksdensity(x, pts)
[f, xi, bw] = ksdensity(...)
[...] = ksdensity(..., Name, Value)
ksdensity(...)
📄Description

ksdensity estimates a smoothed distribution function from univariate sample data using a normal kernel.

Name-value arguments include Bandwidth, Width, Function, NumPoints, Support, Weights, Frequency, Censoring, Kernel, and BoundaryCorrection. Supported function types are pdf, cdf, survivor, cumhazard, and icdf.

💡Examples
x = [0 1 2];
[f, xi, bw] = ksdensity(x)
🔗See Also
ecdfnormpdf
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub