Learn R Programming

Directional (version 6.8)

Transform unit vectors to angular data: Transform unit vectors to angular data

Description

Transform unit vectors to angular data.

Usage

etoa(x)

Value

A list including:

mu

A matrix with angles. The number of columns is one less than that of the original matrix.

Arguments

x

A numerical matrix with directional data, i.e. unit verctors.

Author

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

from the Euclidean coordinates the data are mapped to angles, expressed in rads.

References

https://en.wikipedia.org/wiki/N-sphere#Spherical_coordinates

See Also

vmnb.pred

Examples

Run this code
x <- rvmf(10, rnorm(3), 5)
y <- etoa(x)

Run the code above in your browser using DataLab