mag: Magnitudes of vectors.

Description Usage Arguments Value Author(s)

View source: R/mag.R

Description

Get the Euclidean norm of a single vector or each row of an nx3 matrix.

Usage

1
mag(x)

Arguments

x

vector or n x 3 matrix

Value

the norm of x, or an n-vector giving the norm of each row of x (for a matrix)

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/sensorgnome-R-package documentation built on May 18, 2019, 9:19 p.m.