sample_shapes {fdasrvf} | R Documentation |
Sample shapes from model
Description
Sample shapes from model
Usage
sample_shapes(mu, K, mode = "O", no = 3, numSamp = 10)
Arguments
mu |
array (n,T) of mean srvf |
K |
array (2T,2T) covariance matrix |
mode |
Open ("O") or Closed ("C") curves |
no |
number of principal components |
numSamp |
number of samples |
Value
samples list of sample curves
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_karcher_mean(beta[, , 1, 1:2], maxit = 2)
# note: use more shapes, small for speed
K <- curve_karcher_cov(out$v)
samples <- sample_shapes(out$mu, K)
[Package fdasrvf version 2.2.0 Index]