plot_pod_vs_threshold

plot_pod_vs_threshold(
    X_eval,
    thresholds,
    pod_matrix,
    poi_name='Parameter of Interest',
    ax=None,
)

Plots Probability of Detection (y-axis) vs. Detection Threshold (x-axis) for a selection of representative defect sizes (flaw sizes).

One line is drawn for each of five sizes at the 10th, 30th, 50th, 70th and 90th percentile positions of X_eval.

Parameters

Name Type Description Default
X_eval np.ndarray The grid of defect sizes, shape (n_points,). required
thresholds np.ndarray The detection thresholds, shape (n_thresholds,). required
pod_matrix np.ndarray Mean PoD, shape (n_points, n_thresholds). required
poi_name str Label for the defect size in the legend. Defaults to “Parameter of Interest”. 'Parameter of Interest'
ax plt.Axes Axes to draw on. Defaults to None (a new figure is created). None

Returns

Name Type Description
plt.Axes plt.Axes: The axes drawn on (the given ax, or a new one on a new figure).