Learn R Programming

SLmetrics (version 0.3-4)

auc.xy.numeric: Area under the curve

Description

Area under the curve

Usage

# S3 method for numeric
auc.xy(y, x, method = 0L, presorted = TRUE, ...)

Arguments

y, x

A pair of <double> vectors of length \(n\).

method

A <integer> value (default: \(0\)). Defines the underlying method of calculating the area under the curve. If \(0\) it is calculated using the trapezoid-method, if \(1\) it is calculated using the step-method.

presorted

A <logical>-value length 1 (default: FALSE). If TRUE the input will not be sorted by threshold.

...

Arguments passed into other methods.