sum_dist: Sample Distance

Description Usage Arguments Value Examples

Description

Compute the sum of the pth order distances between Rs and S

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  sum_dist(Rs, S = genR(0, space = class(Rs)),
    method = "projected", p = 1)

  ## S3 method for class 'SO3'
 sum_dist(Rs, S = id.SO3,
    method = "projected", p = 1)

  ## S3 method for class 'Q4'
 sum_dist(Qs, S = id.Q4,
    method = "projected", p = 1)

Arguments

Rs

a matrix of rotation observations, one row per observation

S

the individual matrix of interest, usually an estimate of the mean

method

type of distance used method in 'projected' or 'intrinsic'

p

the order of the distances to compute

Value

the sum of the pth order distance between each sample in Rs and S

NULL

NULL

Examples

1
2
3
4
r<-rvmises(20,0.01)
Rs<-genR(r)
Sp<-mean(Rs)
sum_dist(Rs,S=Sp,p=2)

heike/rotations documentation built on May 17, 2019, 3:24 p.m.