Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

euclid

Euclidean transformation


Description

It transforms the data from the spherical coordinates to Euclidean coordinates.

Usage

euclid(u)

Arguments

u

A two column matrix or even one single vector, where the first column (or element) is the latitude and the second is the longitude. The order is important.

Details

It takes the matrix of unit vectors of latitude and longitude and transforms it to unit vectors.

Value

A three column matrix:

U

The Euclidean coordinates of the latitude and longitude.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>

See Also

Examples

x <- rvmf(10, rnorm(3), 10)
u <- euclid.inv(x)
euclid(u)
x

Directional

A Collection of R Functions for Directional Data Analysis

v4.9
GPL-2
Authors
Michail Tsagris, Giorgos Athineou, Anamul Sajib, Eli Amson, Micah J. Waldstein
Initial release
2021-03-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.