update_design: Update Design with new point

View source: R/utils.R

update_designR Documentation

Update Design with new point

Description

Updates a design adding a new point to it. If the added point is closer than delta to an existing point of the design, the two points are merged together as their arithmetic average. Then updates the weights to be equal to all points of the design.

Usage

update_design(design, xmax, delta, new_weight)

Arguments

design

Design to update. It's a dataframe with two columns:

  • Point contains the support points of the design.

  • Weight contains the corresponding weights of the Points.

xmax

The point to add as a numeric value.

delta

Threshold which defines how close the new point has to be to any of the existing ones in order to merge with them.

new_weight

Number with the weight for the new point.

Value

The updated design.


Kezrael/optedr documentation built on Oct. 12, 2024, 8:40 p.m.