50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

FFTrees (version 1.1.8)

auc: Calculates AUC (Area under the Curve) using trapezoidal approximation

Description

Calculates AUC (Area under the Curve) using trapezoidal approximation

Usage

auc(hr.v, far.v)

Arguments

hr.v
a vector of hit rates
far.v
A vector of false alarm rates

Examples

Run this code

# Calculate the AUC for a vector of hit rates and false alarm rates

auc(hr.v = c(.1, .3, .5, .7), far.v = c(.05, .1, .15, .3))


Run the code above in your browser using DataLab