linedistance {Comp2ROC}R Documentation

Intersection Points

Description

This function allows to calculate the intersection points between the ROC curve and the sampling lines. Also calculates the distance between this points and the reference point.

Usage

linedistance(curve.fpr, curve.tpr, curve.segslope, curve.slope, line.slope, ref.point)

Arguments

curve.fpr

False positive rate vector with all points of the given Curve

curve.tpr

True positive rate vector with all points of the given Curve

curve.segslope

Vector with all segments slope of the ROC curves

curve.slope

Vector with all the slope of all segments that connect the ROC curve with the reference point

line.slope

Vector with the slope of all sampling lines

ref.point

Reference point where we start drawing the sampling lines

Value

This function returns a list with:

dist

Vector with distances between the intersection points and the reference points

x

Vector with all x coordinates of intersection points

y

Vector with all y coordinates of intersection points

See Also

lineslope curvesegslope curvesegsloperef


[Package Comp2ROC version 1.1.4 Index]