sp.pdist: Pairwise Distance of Data on Hypersphere

Description Usage Arguments Value

View source: R/sp.pdist.R

Description

Pairwise Distance of Data on Hypersphere

Usage

1
sp.pdist(x, type = c("intrinsic", "extrinsic"), as.dist = FALSE)

Arguments

x

an (n\times p) row-stacked matrix for \mathbb{S}^{p-1}.

type

type of distance, either "intrinsic" or "extrinsic".

as.dist

a logical; TRUE to return an object of class dist or FALSE a symmetric matrix.

Value

an (n\times n) matrix of pairwise distances or dist object.


kyoustat/RiemSphere documentation built on April 13, 2020, 10:04 a.m.