Libraryless. Click here for Pure Java version (28L/1K).
static double rebaseZeroTo(double min, double p) { ret 1-(1-p)*(1-min); }
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: | 356 / 465 |
| Referenced in: | [show references] |