xyz2pd.m
Probability density estimation for a three-dimensional Cartesian point cloud on a user-specified regular grid.
Syntax
density=xyz2pd(coords,x_range,y_range,z_range,...
x_npts, y_npts, z_npts)
Parameters
coords - an N-by-3 array of Cartesian coordinates
x_range - a two-element vector [xmin xmax] specifying the
Cartesian grid extent along the x axis
y_range - a two-element vector [ymin ymax] specifying the
Cartesian grid extent along the y axis
z_range - a two-element vector [zmin zmax] specifying the
Cartesian grid extent along the z axis
x_npts - the number of grid points along the x axis
y_npts - the number of grid points along the y axis
z_npts - the number of grid points along the z axis
Outputs
density - a three-dimensional array containing the num-
ber of points falling into each grid cell
Examples
See examples in the Spinach distribution relevant to this function.
Notes
This page was generated from the function header in the Spinach repository.
See also
Version 2.11, authors: Ilya Kuprov