[f, xi] = ksdensity(x)
[f, xi] = ksdensity(x, pts)
[f, xi, bw] = ksdensity(...)
[...] = ksdensity(..., Name, Value)
ksdensity(...)
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.
x = [0 1 2];
[f, xi, bw] = ksdensity(x)
| Version | Description |
|---|---|
| 2.0.0 | initial version |