Summarize data (for debugging).
summarize_input(x, y, w, i, j, skip)
NumericVector, expanatory variable.
NumericVector, 0/1 values to fit.
NumericVector, weights (required, positive).
integer, first index (inclusive).
integer, last index (inclusive).
integer, index to skip (-1 to not skip).
summary list
costs <- matrix(c(1.5, NA ,NA ,1 ,0 , NA, 5, -1, 1), nrow = 3)
solve_interval_partition(costs, nrow(costs))
#> [1] 1 2 4