return_curveDist: Returns similarity index between means of two samples of...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/return_curveDist.R

Description

Returns the similarity index, introduced in fdakma, between means of two samples of curves

Usage

1
return_curveDist(Mat1, Mat2, argvals, D1 = TRUE)

Arguments

Mat1

Matrix 1 with each column being the discretized version of a separate curve

Mat2

Matrix 2 with each column being the discretized version of a separate curve

argvals

The abscissa, the x-axis or the time-axis. The length of this should be the same as the number of rows of Mat1 and Mat2

D1

TRUE/FALSE whether the matrix contains the curves of derivatives of the curves. TRUE if contains derivatives.

Value

Dist_obs

Distance (or similarity index) between means of the two curve samples

Author(s)

Subhrangshu Nandi; Statistics PhD student, UW Madison; snandi@wisc.edu or nands31@gmail.com

See Also

fdakma::kma.similarity, permute_curveDist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data( growth, package = 'fda' )
Mat1 <- growth[['hgtm']]
Mat2 <- growth[['hgtf']]
Arguments <- growth[['age']]
SimIndex <- return_curveDist(
  Mat1 = Mat1, 
  Mat2 = Mat2, 
  argvals = Arguments
)
SimIndex

snandi/Registration documentation built on May 30, 2019, 5:04 a.m.