Interface to FLOPART C++ code
FLOPART_interface(
data_vec,
weight_vec,
penalty,
label_type_vec,
label_start_vec,
label_end_vec
)List with named elements: cost_mat and intervals_mat (one row for each data point, first column up, second down), segments_df (one row for each segment in the optimal model)
Integer vector of non-negative count data
Numeric vector of positive weights (same size as data_vec)
non-negative real-valued penalty (larger for fewer peaks)
Integer vector of label types
Integer vector of label starts
Integer vector of label ends