groups_insert
- pyoptex.doe.cost_optimal.codex.insert.groups_insert(Yn, Zs, pos, colstart)[source]
When run at position pos is inserted, compute how the groups for the different factors change.
Parameters
- Ynnp.array(2d)
The design matrix after inserting the new run at position pos
- Zslist(np.array(1d) or None)
The grouping matrices of the old design (before insertion)
- posint
The position of the inserted run
- colstartnp.array(1d)
The starting column of each factor
Returns
- anp.array(1d)
For each factor, the group that run belongs to
- blist(tuple(row_start, row_end, group_from, group_to))
A list of additional group changes per factor. For example, in case a group was broken up due to the insertion.