sample_shapes {fdasrvf}R Documentation

Sample shapes from model

Description

Sample shapes from model

Usage

sample_shapes(x, no = 3, numSamp = 10)

Arguments

x

An object of class fdacurve typically produced by curve_srvf_align()

no

number of principal components

numSamp

number of samples

Value

Returns a fdacurve object containing

betans

random aligned curves

qns

random aligned srvfs

betans

random curves

qs

random srvfs

gams

random reparametrization functions

R

random rotation matrices

References

Srivastava, A., Klassen, E., Joshi, S., Jermyn, I., (2011). Shape analysis of elastic curves in euclidean spaces. Pattern Analysis and Machine Intelligence, IEEE Transactions on 33 (7), 1415-1428.

Examples

out <- curve_srvf_align(beta[, , 1, 1:5], maxit = 2, parallel=FALSE)
# note: use more shapes, small for speed
out.samples <- sample_shapes(out)

[Package fdasrvf version 2.3.1 Index]