calc_auc: Area under the curve computation

View source: R/calc_auc.r

calc_aucR Documentation

Area under the curve computation

Description

Computation of the area under the curve (AUC), by linear interpolation.

Usage

calc_auc(x, y, limits = NULL)

Arguments

x

A numeric vector

y

A numeric vector

limits

A numeric vector of length 2 (default = range of 'x')

Value

A numeric single value with the computed AUC.

Examples


x <- seq(-3,3,l = 100)

y <- dnorm(x)

plot(x,y)

calc_auc(x,y)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.