Skip to contents

Performs FPCA on the phase (warping) component after elastic alignment. Captures timing variability independent of shape.

Usage

horiz.fpca(karcher, ncomp = 3)

Arguments

karcher

A Karcher mean result from karcher.mean.

ncomp

Number of principal components (default 3).

Value

An object of class 'horiz.fpca' with components:

scores

Matrix of FPC scores (n x ncomp)

eigenfunctions.psi

Eigenfunctions in tangent space

eigenfunctions.gam

Eigenfunctions as warp functions

eigenvalues

Eigenvalues

cumulative.variance

Cumulative proportion of variance

mean.psi

Mean tangent vector

shooting.vectors

Shooting vectors matrix

karcher

The Karcher mean used

Examples

# \donttest{
fd <- fdata(matrix(rnorm(500), 50, 10), argvals = seq(0, 1, length.out = 10))
km <- karcher.mean(fd)
h <- horiz.fpca(km, ncomp = 2)
h
#> Horizontal (Phase) FPCA
#>   Components: 2 
#>   Cumulative variance:  62 %, 100 % 
# }