fidelity_analysis¶
- interferopy.tools.fidelity_analysis(catN_name, catP_name, bins=array([0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0, 4.2, 4.4, 4.6, 4.8, 5.0, 5.2, 5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 6.6, 6.8, 7.0, 7.2, 7.4, 7.6, 7.8, 8.0, 8.2, 8.4, 8.6, 8.8, 9.0, 9.2, 9.4, 9.6, 9.8, 10.0, 10.2, 10.4, 10.6, 10.8, 11.0, 11.2, 11.4, 11.6, 11.8, 12.0, 12.2, 12.4, 12.6, 12.8, 13.0, 13.2, 13.4, 13.6, 13.8, 14.0, 14.2, 14.4, 14.6, 14.8]), min_SN_fit=4.0, fidelity_threshold=0.5, kernels=array([3, 5, 7, 9, 11, 13, 15, 17, 19]), verbose=True)[source]¶
Perform and plot the fidelity analysis on a positive and negative catalog
- Parameters
catN_name – name of the cropped catalog of negative lines
catN_name – name of the cropped catalog of positive lines
bins – SN bins for the fidelity analysis
min_SN_fit – minimum SN for fidelity fit
fidelity_threshold – Fidelity threshold above which to select candidates
kernels – list of odd kernel widths to use
- Returns
full list of positive candidates with fidelity
- Returns
full list of negative candidates with fidelity
- Returns
list of positive candidates with fidelity above fidelity_threshold
- Returns
list of negative candidates with fidelity above fidelity_threshold