calcDensity edit page

kernel density estimation from real valued data

Syntax

f = calcDensity(x)
f = calcDensity(x,'range',[xmin;xmax])
f = calcDensity([x,y],'range',[xmin,ymin;xmax,ymax])
f = calcDensity([x,y,z],'range',[xmin,ymin,zmin;xmax,ymax,zmax])

Input

x,y,z random samples as n x 1 vectors

Output

f density as griddedinterpolant

See also

vector3d.calcDensity orientation.calcDensity