Given trial-wise coefficients in the shared basis (rxntrialsxV) and the
voxel-specific matched library coordinates alpha_hat (rxV), compute scalar
amplitudes per trial and voxel via least-squares projection:
a = (alpha' beta) / (alpha' alpha).
Arguments
- beta_rt
3D array of shape r x ntrials x V containing per-trial coefficients in the SBHM basis (as returned by OASIS with K=r, reshaped).
- alpha_hat
Numeric matrix rxV of matched library coordinates per voxel (e.g.,
sbhm_match()$alpha_hat). These should be in the same coordinate system asbeta_rt(unwhitened, not L2-normalized) for interpretable amplitudes.