trapezint: trapezoidal rule for AUC

Description Usage Arguments Details Value Examples

Description

trapezoidal rule for AUC

Usage

1
trapezint(x, y, a, b)

Arguments

x

x - abscissae

y

y - ordinates

a

a - lower limit of integration

b

b - upper limit of integration

Details

uses approx

Value

estimated AUC

Examples

1
2
3
x <- sort(runif(30))
y <- sin(x)
print(trapezint(x,y,0,1))

Example output

[1] 0.4595563

ROC documentation built on Nov. 8, 2020, 5:23 p.m.