Given a set of optimal cost_k from k=1 segments to K segments, calculate an exact representation of the model selection function z^*(L)=argmin_k exp(L)*k + cost_k.

1 | ```
zstar(cost)
``` |

`cost` |
numeric vector: optimal costs. |

Data.frame with columns min.lambda, max.lambda, segments, max.L, min.L, size, an exact representation of the z^* function, where min.L <= z^*(L) = segments <= max.L holds for each row.

Guillem Rigaill, Toby Dylan Hocking

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.