areatriangles {Comp2ROC}R Documentation

Triangle Areas

Description

This function allows to calculate the triangles area formed with two points that was next to each other and the reference point. It also allows to calculate the total area based on the previous triangles.

Usage

areatriangles(line.slope, line.dist1)

Arguments

line.slope

Vector with all sampling lines slope

line.dist1

Vector with the ROC Curves and sampling lines intersection points, the distance between this points and the reference point

Value

This function return a list with:

auctri

Total area

areatri

Vector with all triangles areas

See Also

lineslope linedistance curvesegslope curvesegsloperef


[Package Comp2ROC version 1.1.4 Index]