Area_Under_Curve | R Documentation |
Calculate the area under the curve.
Area_Under_Curve(x, y, method = c("trapezoid", "step", "spline"),
na.rm = FALSE)
x |
the x-points of the curve |
y |
the y-points of the curve |
method |
can be "trapezoid" (default), "step" or "spline" |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds |
Area Under the Curve (AUC)
x <- seq(0, pi, length.out = 200)
plot(x = x, y = sin(x), type = "l")
Area_Under_Curve(x = x, y = sin(x), method = "trapezoid", na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.