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

9
LINES

< > BotCompany Repo | #1029110 // lcStream_prediction

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

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

sS lcStream_prediction(LCStreamingCompressor comp) {
  LineComp_PairIndex.Node tail = comp.chain.tail;
  if (tail == null) null;
  //print("tail", tail);
  OptimizedMultiSet<Int> partners = comp.popularRightPartners.get(tail.value);
  if (partners == null) null;
  //print(+partners);
  ret comp.itemToString(partners.getMostPopularEntry());
}

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: #1029110
Snippet name: lcStream_prediction
Eternal ID of this version: #1029110/2
Text MD5: 84a01330e1f836d79958aef5ecca5016
Transpilation MD5: 8f2ad148736e9d17c9da63085ba80f0f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-19 23:21:59
Source code size: 351 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 119 / 176
Version history: 1 change(s)
Referenced in: [show references]