You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
466 B
Plaintext

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/numeric.R
\name{trapz}
\alias{trapz}
\title{Calculate area under a curve}
\usage{
trapz(x, y)
}
\arguments{
\item{x}{vector (of length n)}
\item{y}{vector (of length n)}
}
\value{
vector (of length n - 1)
}
\description{
Numerically calculate area under an arbitrary curve (defined by x, y coord pairs)
using trapezodial integration. See Wikipedia for more info on trapz integration.
}