extend_design
- pyoptex.doe.fixed_structure.splitk_plot.utils.extend_design(Y, plot_sizes, new_plot_sizes, effect_levels)[source]
Extend an existing design Y with initial plot sizes (plot_sizes) to a new design with new_plot_sizes. This function only extends the existing design by adding new runs in the correct positions and forcing the correct factor levels where necessary. It does not perform any optimization or initialization of the new runs.
Parameters
- Ynp.array(2d)
The initial design. If all initial plot sizes are zero, a new design is created with all zeros.
- plot_sizesnp.array(1d)
The initial plot sizes of the design.
- new_plot_sizesnp.array(1d)
The new plot sizes after augmentation.
- effect_levelsnp.array(1d)
The plot level of each factor.
Returns
- Yextnp.array(2d)
The extended design.