1 | svoid video_scoreRect_x(Scorer scorer, Rect expected, Rect guessed, double tolerance) { |
2 | if ((guessed == null) != (expected == null)) ret with scorer.addError(); |
3 | if (expected == null) ret with scorer.addOK(); |
4 | scorer.addZeroToOneError(average( |
5 | abs(rectCenterX(guessed)-rectCenterX(expected)), |
6 | abs(guessed.w-expected.w))/tolerance); |
7 | } |
Began life as a copy of #1018799
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019209 |
Snippet name: | video_scoreRect_x - only look at x coordinate |
Eternal ID of this version: | #1019209/3 |
Text MD5: | 3df1f5c8699b51b5dbba805eb4448f3c |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-27 21:23:06 |
Source code size: | 351 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 391 / 400 |
Version history: | 2 change(s) |
Referenced in: | [show references] |