The ROC curve functions by evaluating various threshold values that determine whether a test result is positive or negative. For example, in toxicology, a blood test might be used to detect a specific toxin. By adjusting the threshold for what constitutes a "positive" result, the ROC curve illustrates how changes in this threshold affect the sensitivity and specificity of the test. Each point on the curve represents a sensitivity/specificity pair corresponding to a particular decision threshold.