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
f S1FunHarmonic

Options

periodic consider values as periodic

See also

vector3d.calcDensity orientation.calcDensity