# The following example takes a toy dataframe (toy), which represents an
# experimental design. Variable d contains observations at points in a
# six dimensional parameter space specified by the rows of toy.
# Function interpolant() is then called to estimate what the
# observation would be at a point that has no direct observation.
data(toy)
d <- c(11.05, 7.48, 12.94, 14.91, 11.34, 5.0, 11.83, 11.761, 11.62, 6.70)
fish <- rep(1,6)
x <- rep(0.5, 6)
interpolant(x, d, toy, scales=fish,give=TRUE)
Run the code above in your browser using DataLab