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.
update_design(design, xmax, delta, new_weight)
The updated 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 Point
s.
The point to add as a numeric value.
Threshold which defines how close the new point has to be to any of the existing ones in order to merge with them.
Number with the weight for the new point.