function
Vision.Features.FastSelectionScoreFloor
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | absoluteThreshold | Real | | |
| input | rankScale | Real | | |
| output | scoreFloor | Real | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function FastSelectionScoreFloor
input Real absoluteThreshold;
input Real rankScale;
output Real scoreFloor;
algorithm
scoreFloor := 0.0;
if absoluteThreshold > 0.0 and absoluteThreshold <= 255.0
and rankScale >= 1.0 and rankScale <= 1e12 then
scoreFloor := max(0.0,(floor(absoluteThreshold*rankScale)-2.0)/rankScale);
end if;
end FastSelectionScoreFloor;