center_of_mass: Compute the center of mass of the given points.

Description Usage Arguments Value

View source: R/volume_regions.R

Description

Compute the center of mass of the given points.

Usage

1

Arguments

coords

numeric nx3 matrix if point x,y,z coordinates. A single coordinate can be passed as a vector of length 3, and will be returned as is.

weights

numerical vector of length n, weights for the points in coords. Assumed to be all 1.0 if omitted.

Value

vector of length 3, the center of mass.


dfsp-spirit/brainloc documentation built on Jan. 28, 2022, 12:25 p.m.