Construct a basis space from a synthesis dictionary
Source:R/feature-space.R
basis_space_from_decoder.RdComputes the exact unregularized least-squares encoder
(D' D)^{-1} D' for a full-column-rank decoder D.
Arguments
- parent, component_ids, decoder, data, basis_type, provenance, tolerance, metadata
Passed to
basis_space().- encoder
Either
"least_squares"to construct and validate the exact unregularized left inverse, or"none"for a synthesis-only basis.
Examples
parent <- volume_space(c(2, 1, 1), support = 1:2)
x <- basis_space_from_decoder(parent, c("c1", "c2"), diag(2))
basis_synthesis(x)
#> [,1] [,2]
#> [1,] 1 0
#> [2,] 0 1