compute_pod_probs_fast

compute_pod_probs_fast(mean_resp, sigma_resp, threshold, dist_info, out=None)

High-performance PoD survival CDF calculation.

Uses C++ fast analytical CDF evaluation if compiled, or vectorized SciPy distribution call if not. Computes 1 - F((threshold - mean) / sigma) for the residual distribution F.

Parameters

Name Type Description Default
mean_resp np.ndarray Mean response at each point. required
sigma_resp np.ndarray Response standard deviation at each point (floored at 1e-10 on the NumPy path). required
threshold float The detection threshold. required
dist_info tuple (dist_name, dist_params): a scipy.stats distribution name and its parameter tuple ending in (loc, scale). required
out np.ndarray Array to write the result into. Defaults to None. None

Returns

Name Type Description
np.ndarray np.ndarray: PoD at each point (out itself if given).

Raises

Name Type Description
ValueError If the distribution scale is not positive.