Skip to main content

COST_DEGENERATE

Constant COST_DEGENERATE 

Source
const COST_DEGENERATE: f64 = 4.0;
Expand description

Costs assigned where NCC is not a meaningful number. Both are above the worst real cost (1 - (-1) = 2), so a degenerate candidate can never win, and the overlap case keeps a gradient that pushes the search back into the valid region.