findTrialByQuantile | R Documentation |
This function returns the trial number (index) with a terminal value that matches the quantile (qTile). So, qTile == 0 will identify which trial has the lowest value, 1 the highest, and 0.5 the median. If more than one trial has the same terminal value, the function returns the trial that has that terminal value earliest. So, if the quantile of the terminal values is 0, and there are multiple trials that terminate with 0, the function returns the trial which ends with 0 earliest.
findTrialByQuantile(sim, simResult, qTile)
sim |
Simulation object. |
simResult |
Name of item in sim with results (class = 'simResult') |
qTile |
Quantile (0 - 1) of terminal value |
Integer representing which trial terminates with the qTile value.
## Not run: findTrialByQuantile(sim, simResult, qTile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.