modify.daoh.distribution | R Documentation |
Modify a DAOH distribution, until at.quantile is target.quantile.val. Uses data.table so that things can be done by reference.
modify.daoh.distribution( x = 0:90, prob = rep(1, 90), target.quantile.val = NULL, relative.quantile.val = NULL, at.quantile = 0.5, multiple.per.step = 0.01, output.to.console = T, empirical.dist = F, n.emp = 1e+05 )
x |
Possible values for daoh |
prob |
Probability of each daoh value |
target.quantile.val |
The target value for at.quantile |
relative.quantile.val |
Value that the target quantile should be relative to its current value. |
at.quantile |
The quantile at which to insert a difference (default: 0.5). |
multiple.per.step |
Probabilities will be adjusted as a function of this number. |
output.to.console |
Print progress to console. |
empirical.dist |
Calculate quantiles for calculating cost empirically (slower) |
n.emp |
Number of samples that will be generated when empirically finding quantiles |
The modified distribution as a list containing values and weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.