coarsen_index {registr} | R Documentation |
Reduce the resolution of a numeric vector by specifying the number of
significant_digits
to which the numbers should be rounded.
Internal function used to coarsen the index vector before estimating the
two-step GFPCA with gfpca_twoStep
.
coarsen_index(index, significant_digits)
index |
Numeric vector of index values. |
significant_digits |
Positive integer value. |
Numeric vector of rounded index values.
Alexander Bauer alexander.bauer@stat.uni-muenchen.de
index_vector = c(0.7892, 0.2984, 0.328)
registr:::coarsen_index(index_vector, 1)
registr:::coarsen_index(index_vector, 3)
index_vector2 = c(2803, -7639, 13)
registr:::coarsen_index(index_vector2, 1)
registr:::coarsen_index(index_vector2, 3)