Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1027471 // posNegMatrixOfInts_quality (0 to 1)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2266L/15K).

static double posNegMatrixOfInts_quality(PosNegMatrix<Int> m) {
  if (m == null) ret 0;
  int total = m.pos+m.neg+m.falsePos+m.falseNeg;
  ret doubleRatio(m.pos+m.neg, total);
}

Author comment

Began life as a copy of #1027469

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: #1027471
Snippet name: posNegMatrixOfInts_quality (0 to 1)
Eternal ID of this version: #1027471/1
Text MD5: b8de1322fd1185cb69517a08a4d5666a
Transpilation MD5: 283321108ff532f01241c68ce745a507
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 13:27:49
Source code size: 181 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 205 / 269
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)