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