Used in tidyqpcr to calculate dR/dT for a melt curve of fluorescence signal R vs temperature T.

calculate_dydx_1(x, y, method = "spline", ...)

Arguments

x

input variable, numeric vector, assumed to be temperature

y

output variable, numeric vector of same length as x, assumed to be fluorescence signal.

method

to use for smoothing:

"spline" default, uses smoothing spline stats::smooth.spline.

"diff" base::diff for lagged difference

...

other arguments to pass to smoothing method.

Value

estimated first derivative of y with respect to x, numeric vector of same length as y.

See also

Other melt_curve_functions: calculate_drdt_plate()