R/basis_set.R
basis2mrs_data.Rd
Convert a basis object to an mrs_data object - where basis signals are spread across the dynamic dimension.
basis2mrs_data(basis, sum_elements = FALSE, amp = NULL, shift = NULL)
basis | basis set object. |
---|---|
sum_elements | return the sum of basis elements (logical) |
amp | a vector of scaling factors to apply to each basis element. |
shift | a vector of frequency shifts (in PPM) to apply to each basis element. |
an mrs_data object with basis signals spread across the dynamic dimension or summed.