insert

Module for all insert functions of the CODEX algorithm

Functions

groups_insert(Yn, Zs, pos, colstart)

When run at position pos is inserted, compute how the groups for the different factors change.

insert_last(new_run, state, params)

Inserts a new run at the last position and returns a new state.

insert_optimal(new_run, state, params)

Inserts a new run in the optimal position by simultaneously maximizing the metric and minimizing the cost increase.