sherlockpipe.scoring.helper.compute_border_score
- sherlockpipe.scoring.helper.compute_border_score(time, result, intransit, cadence)
Compute a border score penalizing transits that fall near observation edges.
The score ranges from 0 (all transits near edges) to 1 (no transits near edges).
Parameters
- timendarray
The time array of the light curve.
- resultTransitResult
The transit result containing transit depths.
- intransitndarray
Boolean array indicating in-transit points.
- cadencefloat
The cadence in seconds.
Returns
- float
The border score between 0 and 1, where 1 means no transits near edges.