Centroid.m

From Spinach Documentation Wiki
Revision as of 15:02, 3 January 2018 by Kuprov (talk | contribs) (Created page with "{{DISPLAYTITLE:function.m}} Finds the centre of mass point of a 3D probability density in a cube. ==Syntax== [x,y,z]=centroid(probden,ranges) ==Arguments== probd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Finds the centre of mass point of a 3D probability density in a cube.

Syntax

    [x,y,z]=centroid(probden,ranges)

Arguments

    probden  - probability density cube with dimensions
               ordered as [X Y Z]

    ranges   - six-element vector giving axis extents
               as [xmin xmax ymin ymax zmin zmax]

Outputs

    [x,y,z]  - centre of mass coordinates

See also

probmax.m, volplot.m, kpcs.m, ipcs.m


Version 2.1, authors: Ilya Kuprov