Skip to contents

Given a query, and either two values of M/Z and two values of frequency or a previously generated model, return a data.frame with the predicted value, and the slope and the intercept so the model can be re-used later for other points when needed.

Usage

mz_frequency_interpolation(
  mz_query,
  mz_values = NULL,
  frequency_values = NULL,
  model = NULL
)

Arguments

mz_query

the M/Z value to fit

mz_values

two M/Z values

frequency_values

two frequency values

model

a model to use instead of actual values

Value

data.frame with predicted_value, intercept, and slope