Description Usage Arguments Value Examples
View source: R/curveFit_utils.R
Evaluate fitted curve values at x
data points
1 | predictCurve(fittedCurve, x)
|
fittedCurve |
(peakPantheR_curveFit) A 'peakPantheR_curveFit': a list of curve fitting parameters, curve shape model |
x |
(numeric) values at which to evaluate the fitted curve |
fitted curve values at x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
## Input a fitted curve
fittedCurve <- list(amplitude=275371.1, center=3382.577, sigma=0.07904697, gamma=0.001147647,
fitStatus=2, curveModel="skewedGaussian")
class(fittedCurve) <- 'peakPantheR_curveFit'
input_x <- c(3290, 3300, 3310, 3320, 3330, 3340, 3350, 3360, 3370, 3380, 3390, 3400, 3410)
## Predict y at each input_x
pred_y <- predictCurve(fittedCurve, input_x)
pred_y
# [1] 2.347729e-08 1.282668e-05 3.475590e-03 4.676579e-01 3.129420e+01 1.043341e+03 1.736915e+04
# [8] 1.447754e+05 6.061808e+05 1.280037e+06 1.369651e+06 7.467333e+05 2.087477e+05
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.