Get the basis matrix (temporal components)
Examples
if (FALSE) { # \dontrun{
# For LatentNeuroVec:
if (!is.null(fmristore:::create_minimal_LatentNeuroVec)) {
lnv <- NULL
tryCatch({
lnv <- fmristore:::create_minimal_LatentNeuroVec(
space_dims = c(4L, 4L, 2L),
n_time = 10L,
n_comp = 3L
)
b_matrix <- basis(lnv)
print(dim(b_matrix)) # Should be n_time x n_comp (e.g., 10x3)
}, error = function(e) {
message("basis example for LatentNeuroVec failed: ", e$message)
})
} else {
message("Skipping basis example for LatentNeuroVec: helper not available.")
}
} # }