sp.pdist2: Pairwise Distance of Two Sets of Data on Hypersphere

Description Usage Arguments Value

View source: R/sp.pdist2.R

Description

Pairwise Distance of Two Sets of Data on Hypersphere

Usage

1
sp.pdist2(x1, x2, type = c("intrinsic", "extrinsic"))

Arguments

x1

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

x2

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

type

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

Value

an (m \times n) matrix of cross distances between x1 and x2.


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