trapezoidal rule for AUC
trapezoidal rule for AUC
trapezint(x, y, a, b)
x |
x - abscissae |
y |
y - ordinates |
a |
a - lower limit of integration |
b |
b - upper limit of integration |
uses approx
estimated AUC
x <- sort(runif(30)) y <- sin(x) print(trapezint(x,y,0,1))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.