CBSfunc {CBSr} | R Documentation |
Calculate either the Area Under the Curve (AUC) of a CBS function, or calculate the y coordinates of CBS function given x.
CBSfunc(xpos, ypos, x = NULL)
xpos |
Vector of real numbers of length 1+3n (n = 1, 2, 3, ...), corresponding to Bezier points' x-coordinates of a CBS function |
ypos |
Vector of real numbers of length 1+3n (n = 1, 2, 3, ...), corresponding to Bezier points' y-coordinates of a CBS function |
x |
Vector of real numbers, corresponding to x-coordinates of a CBS function. Default value is Null. |
If x is provided, return y coordinates corresponding to x. If x is not provided, return AUC.
CBSfunc(c(0,0.3,0.6,1),c(0.5, 0.2, 0.7, 0.9))
CBSfunc(c(0,0.3,0.6,1),c(0.5, 0.2, 0.7, 0.9),seq(0,1,0.1))