xyz2pd.m

From Spinach Documentation Wiki
Revision as of 21:37, 22 February 2026 by Kuprov (talk | contribs) (Expand See also links to related Spinach functions and docs)
Jump to: navigation, search

Probability density estimation for a three-dimensional Cartesian

Syntax

            density=xyz2pd(coords,x_range,y_range,z_range,...
                                  x_npts, y_npts, z_npts)

Arguments

       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