auc: Area Under the Curve (histogram)

View source: R/auc.R

aucR Documentation

Area Under the Curve (histogram)

Description

Function auc() is deprecated. Use utility_shrinkslice(..., utility_type = "AUC").

Usage

auc(u = NULL, x = NULL, y = NULL, nbins = 30)

Arguments

u

Numeric vector of samples supported on unit interval with which to create a histogram (use u = NULL if x and y are supplied).

x

Numeric vector of histogram locations. (Not used if u is supplied).

y

Numeric vector of histogram heights OR function evaluating the curve for a given value of u supported on (0,1). (Not used if u is supplied).

nbins

Number of histogram bins to use (defaults to 30).

Value

Scalar value of the AUC (see utility_shrinkslice).


qslice documentation built on Oct. 22, 2026, 1:06 a.m.