Difference between revisions of "Centroid.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(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...")
 
(Update function See also links and function index membership)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
{{DISPLAYTITLE:function.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.
  
Line 6: Line 6:
 
     [x,y,z]=centroid(probden,ranges)
 
     [x,y,z]=centroid(probden,ranges)
  
−
==Arguments==
+
==Parameters==
  
 
     probden  - probability density cube with dimensions
 
     probden  - probability density cube with dimensions
Line 19: Line 19:
  
 
==See also==
 
==See also==
−
[[probmax.m]], [[volplot.m]], [[kpcs.m]], [[ipcs.m]]
+
[[probmax.m]], [[volplot.m]], [[kpcs.m]], [[ipcs.m]], [[csa2racs.m]], [[eqmag.m]], [[fieldscan_enlev.m]], [[fieldscan_magn.m]], [[geffect.m]], [[hfc2pcs.m]], [[hfc2pms.m]], [[ippcs.m]], [[pcs2chi.m]], [[pcs_combi_fit.m]], [[pms2chi.m]], [[ppcs.m]], [[Built-in_experiments]]
−
 
 
  
 
''Version 2.1, authors: [[Ilya Kuprov]]''
 
''Version 2.1, authors: [[Ilya Kuprov]]''

Latest revision as of 18:35, 6 June 2026

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

Syntax

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

Parameters

    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, csa2racs.m, eqmag.m, fieldscan_enlev.m, fieldscan_magn.m, geffect.m, hfc2pcs.m, hfc2pms.m, ippcs.m, pcs2chi.m, pcs_combi_fit.m, pms2chi.m, ppcs.m, Built-in_experiments

Version 2.1, authors: Ilya Kuprov