fastfun {DiceOptim} | R Documentation |
Fastfun function
Description
Modification of an R function to be used as with methods predict
and update
(similar to a km
object).
It creates an S4 object which contains the values corresponding to evaluations of other costly observations.
It is useful when an objective can be evaluated fast.
Usage
fastfun(fn, design, response = NULL)
Arguments
fn |
the evaluator function, found by a call to |
design |
a data frame representing the design of experiments. The ith row contains the values of the d input variables corresponding to the ith evaluation. |
response |
optional vector (or 1-column matrix or data frame) containing the values of the 1-dimensional output given by the objective function at the design points. |
Value
An object of class fastfun-class
.
[Package DiceOptim version 2.1.1 Index]