Difference between revisions of "Centroid.m"
m (Correct function page display title to centroid.m) |
(Add NOTOC to Spinach function page header) |
||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:centroid.m}} | + | {{DISPLAYTITLE:centroid.m}} __NOTOC__ |
Finds the centre of mass point of a 3D probability density in a cube. | Finds the centre of mass point of a 3D probability density in a cube. | ||
Revision as of 15:58, 5 June 2026
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