Description Usage Arguments Value Author(s) Examples
View source: R/gfpca_helpers.R
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
.
1 | 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
1 2 3 4 5 6 7 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.