Description Usage Arguments Details Value
View source: R/setup_experiment.R
Add a response to the experiment
1 2 |
name |
a unique length 1 character vector giving the name of a response |
range |
optional length 2 numeric vector giving boundaries on possible response levels |
value |
function to compute the value of a particular response point, the algorithm will maximize the response of this function |
weight |
relative weighting factor used to prioritize some responses over others |
The value function must accept two positional arguments. The first is for the 'current' response value while the second is for a vector of all input response values. These two inputs can then be used however you like to return a numeric value. e.g. 'function(y, hist)100 - y'
invisible
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.