Skip to contents

Get the basis matrix (temporal components)

Usage

basis(x, ...)

# S4 method for class 'LatentNeuroVec'
basis(x)

Arguments

x

An object, likely a LatentNeuroVec or similar

...

Additional arguments

Value

The basis matrix (typically time x 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.")
}
} # }