A basis_space is a representational feature axis linked to one parent
spatial space. Its encoder maps parent features to component coefficients;
its optional decoder maps coefficients back to the parent. Fitting and
model-specific offsets remain the responsibility of packages such as
fmrilatent.
Arguments
- parent
Parent
feature_spacerepresented by the basis.- component_ids
Stable component identifiers.
- encoder
Component-by-parent analysis operator.
- decoder
Optional parent-by-component synthesis operator.
- data
One metadata row per component.
- basis_type
Stable basis-family label.
- provenance
Serializable derivation metadata.
- tolerance
Maximum absolute error permitted when validating that
encoder %*% decoderis the component-space identity.- metadata
Additional serializable metadata.
Examples
parent <- volume_space(c(2, 1, 1), support = 1:2)
x <- basis_space(parent, c("c1", "c2"), diag(2), diag(2))
n_features(x)
#> [1] 2