calc.area.below.line: Calculates the area between x-axis and a straight line

View source: R/Utils.R

calc.area.below.lineR Documentation

Calculates the area between x-axis and a straight line

Description

It takes four parameters as the coordinates of two points at the beginning and end of a straight line, and calculates the area exactly below the line (between the line and the x-axis).

Usage

calc.area.below.line(x1, x2, y1, y2)

Arguments

x1, x2

Float values, indicating the first coordinates of start and end points, respectively.

y1, y2

Float values, indicating the second coordinates of start and end points, respectively.

Value

A float.


RSD documentation built on June 21, 2025, 5:09 p.m.