doit_fit: Fit a DoIt object

Description Usage Arguments Value Examples

Description

Fit the parameters of the DoIt approximation.

Usage

1
doit_fit(design, w = NULL)

Arguments

design

A data frame of design points and corresponding function evaluations. Must contain a column named 'f' with function values. The other columns are treated as design points.

w

vector of variances used for the Gaussian kernels. If 'NULL' (the default), 'w' is calculated by 'doit_estimate_w'.

Value

An object of class 'doit' used in further calculations.

Examples

1
2
3
design = data.frame(x=rnorm(10), y=rnorm(10))
design$f = with(design, exp(-0.5*(x+y)^2))
fit = doit_fit(design)

sieste/doit documentation built on May 9, 2019, 4:10 p.m.