Libraryless. Click here for Pure Java version (2438L/16K).
1 | static double scoreRegexpIC(S regexp, Cl<S> pos, Cl<S> neg) { |
2 | PosNegMatrix<LS> matrix = posNegMatrixForRegexpIC(regexp, pos, neg); |
3 | PosNegMatrix<Int> m2 = posNegMatrixOfLists_lengths(matrix); |
4 | double quality = posNegMatrixOfInts_quality(m2); |
5 | //if (verbose) print(regexp + ": " + m2 + " / " + quality); |
6 | ret quality; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027476 |
Snippet name: | scoreRegexpIC |
Eternal ID of this version: | #1027476/1 |
Text MD5: | acf4726cb03c98460d058a2ad3bed53c |
Transpilation MD5: | b862970fe1cd881f39459eff733ab6a3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-22 14:08:19 |
Source code size: | 330 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 174 / 251 |
Referenced in: | [show references] |