area_rect: Area Under the Curve

View source: R/area.R

area_rectR Documentation

Area Under the Curve

Description

Compute area under the curve by using the rectangle's method.

Usage

area_rect(x, y)

Arguments

x

Numeric.

y

Numeric.

Value

A numeric.

Examples

x <- c(0, 0, 0.5, 1)
y <- c(0, 0.5, 0.5, 1)
plot(x, y, type = "b")
evabic:::area_rect(x, y)

evabic documentation built on Dec. 13, 2025, 1:06 a.m.