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.
fastfun(fn, design, response = NULL)
the evaluator function, found by a call to match.fun
,
a data frame representing the design of experiments. The ith row contains the values of the d input variables corresponding to the ith evaluation.
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.
An object of class fastfun-class
.