Learn R Programming

spant (version 3.3.0)

resample_basis: Resample a basis-set to match a mrs_data acquisition.

Description

Resample a basis-set to match a mrs_data acquisition.

Usage

resample_basis(basis, mrs_data, ref_freq_match = TRUE)

Value

resampled basis set object.

Arguments

basis

the basis to be resampled.

mrs_data

the mrs_data to match the number of data points and sampling frequency.

ref_freq_match

apply a frequency shift to the basis to match the reference frequency (usually 4.65 or 4.68) of the mrs_data.