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

3
LINES

< > BotCompany Repo | #1032209 // rebaseZeroTo - for probabilities. scale from [0; 1] to [min; 1]

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

Libraryless. Click here for Pure Java version (28L/1K).

1  
static double rebaseZeroTo(double min, double p) {
2  
  ret 1-(1-p)*(1-min);
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032209
Snippet name: rebaseZeroTo - for probabilities. scale from [0; 1] to [min; 1]
Eternal ID of this version: #1032209/1
Text MD5: 48f14966eb5b04b3492ddd7f11a85047
Transpilation MD5: d1765e6c2b93bcaf3e9d901e03108e93
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-20 07:43:23
Source code size: 77 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 143 / 204
Referenced in: [show references]