1 | static double ocr_minScoreAdjust(double rawScore) { |
2 | ret max(0, min(1, adjustDouble(rawScore, ocr_minScore(), 1, 0, 1))); |
3 | } |
4 | |
5 | static float ocr_minScoreAdjust(float rawScore) { |
6 | ret (float) ocr_minScoreAdjust((double) rawScore); |
7 | } |
8 | |
9 | static <A> Scored<A> ocr_minScoreAdjust(Scored<A> s) { |
10 | ret s == null ? null : Scored(s!, ocr_minScoreAdjust(s.score())); |
11 | } |
Began life as a copy of #1015459
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015460 |
Snippet name: | ocr_minScoreAdjust - works from 0 to 1 |
Eternal ID of this version: | #1015460/6 |
Text MD5: | 7742a771c92b481f66fe1d5ac3eb8541 |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-14 19:25:10 |
Source code size: | 366 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 355 / 392 |
Version history: | 5 change(s) |
Referenced in: | [show references] |