spectra.alignment {RamanMP} | R Documentation |
Align spectra with different spectral resolution
Description
The function merges spectra with different spectral resolution using as a reference the spectra with highest resolution. The matching is done based on a span value defined by the user.
Usage
spectra.alignment(db1, db2, t)
Arguments
db1 |
Dataframe/matrix with frequency values as first column and at least one column with intensity values. |
db2 |
Dataframe/matrix with frequency values as first column and at least one column with intensity values. |
t |
Numeric. It indicates the tolerance for the matching of the two spectra. For a given t-value, the intensity values that range in the frequency interval (f-t, f+t) are matched with the corresponding intensity values of the database with the highest spectral resolution. |
Value
Return a matrix with frequency of the database with highest spectral resolution and intensity values of the two databases matched based on the 't' parameter.