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

9
LINES

< > BotCompany Repo | #1032068 // test_runProbabilisticBinaryMaximumSearch_withFoundInStep

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

Libraryless. Click here for Pure Java version (5819L/34K).

1  
svoid test_runProbabilisticBinaryMaximumSearch_withFoundInStep() {
2  
  assertEqualsVerbose(str(WithProbability(.48, FoundInStep(19, 30.078125))),
3  
    str(first(runProbabilisticBinaryMaximumSearch_withFoundInStep(
4  
      x -> -abs(30-x),
5  
      doubleRange(0, 100),
6  
      0.5,
7  
      1,
8  
      25))));
9  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032068
Snippet name: test_runProbabilisticBinaryMaximumSearch_withFoundInStep
Eternal ID of this version: #1032068/1
Text MD5: fc9bab91bc3504a607c92e5d369bb9c5
Transpilation MD5: c8a85412234f3581a30243f926a9a926
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 10:52:52
Source code size: 304 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 75 / 120
Referenced in: [show references]