update_design | R Documentation |
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)
design |
Design to update. It's a dataframe with two columns:
|
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. |
The updated design.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.