sp.mds: Multidimensional Scaling on Hypersphere

Description Usage References Examples

View source: R/sp.mds.R

Description

Multidimensional Scaling on Hypersphere

Usage

1
sp.mds(x, ndim = 2, type = c("intrinsic", "extrinsic"))

References

\insertRef

torgerson_multidimensional_1952RiemSphere

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## generate two-cluster data
mymu1 = c(0,0,0,1)  # center of class 1
mymu2 = c(-1,0,0,0) # center of class 2

x1 = rvmf(50, mymu1, kappa=15)
x2 = rvmf(50, mymu2, kappa=15)
xx = rbind(x1,x2)

## compute 2d embedding and visualization
mds2d <- sp.mds(xx, ndim=2)
plot(mds2d$embed[,1], mds2d$embed[,2], pch=19)

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