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

5
LINES

< > BotCompany Repo | #1028485 // lcRepetitiveness - repetitiveness factor of linecomped text

JavaX fragment (include)

1  
static double lcRepetitiveness(LineCompedSingle<Char> lc) {
2  
  S a = uncompressLineCompedSingle(lc);
3  
  S b = renderLineCompedSingleWithBrackets(lc);
4  
  ret doublePercentRatio((l(b)-l(a))/2, l(a));
5  
}

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: #1028485
Snippet name: lcRepetitiveness - repetitiveness factor of linecomped text
Eternal ID of this version: #1028485/3
Text MD5: 443e2203d301c6076f66a5fbb4356f55
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-22 00:49:39
Source code size: 200 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 222 / 256
Version history: 2 change(s)
Referenced in: [show references]