adapt_groups
- pyoptex.doe.cost_optimal.codex.optimization.adapt_groups(groups, Y, colstart, row_start, row_end)[source]
Detects which groups should be adapted for each factor according to
adapt_group.Parameters
- groupslist(np.array(1d))
The grouping matrix for this factor.
- Ynp.array(2d)
The design matrix with the coordinate already changed.
- colstartnp.array(1d)
The start of each encoded column.
- row_startint
The starting row (included) where the coordinate was changed.
- row_endint
The final row (excluded) where the coordinate was changed.
Returns
- blist(tuple(row_start, row_end, group_from, group_to))
A list of operations to apply changing the groups of the factors.