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

10
LINES

< > BotCompany Repo | #1029118 // lcStream_prediction2

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

Uses 11335K of libraries. Click here for Pure Java version (4719L/30K).

sS lcStream_prediction2(LCStreamingCompressor comp) {
  Map<Int, OptimizedMultiSet<Int>> map = lcStream_rightPartnerMap(comp);
  //printStruct(map);
  LineComp_PairIndex.Node tail = comp.chain.tail;
  if (tail == null) null;
  OptimizedMultiSet<Int> partners = map.get(tail.value);
  //print("partners of " + tail.value + ": " + partners);
  if (partners == null) null;
  ret comp.itemToString(partners.getMostPopularEntry());
}

Author comment

Began life as a copy of #1029110

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: #1029118
Snippet name: lcStream_prediction2
Eternal ID of this version: #1029118/6
Text MD5: 7ce921cd261d3259171b5110077c68c8
Transpilation MD5: d9c409b8d42d0014453b0af2dc1b1073
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-20 02:13:07
Source code size: 437 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 221 / 300
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029119 - lcStream_repeatedPrediction2