doit_update: Update a DoIt approximation

Description Usage Arguments Value Examples

Description

Update a 'doit' object by adding a new design point, but without changing the kernel width.

Usage

1
doit_update(doit, design_new)

Arguments

doit

An object of class 'doit', see function 'doit_fit'.

design_new

The new design point.

Value

The updated 'doit' object.

Examples

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

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