The estimator in this package computes the optimum of
\(-l(C, p) + \lambda*R(leftIndex, rightIndex, nrow, ncol)\), where l is the
log likelihood of the family, lambda is the penalization constant and R
is the regularization function. The user can create his own regularization
function and pass as an argument to fit_blockcpd. It
should have four arguments, in the following order: left_index, right_index,
nrow and ncol. Each argument is explained in the parameter section.
If the function depends on leftIndex and rightIndex, it will be
non-homogeneous, which might be interesting in some applications.
The package implements some functions as an example, but uses only
bic_loss as the default. The algorithm is consistent as long as the
the regularization is bounded by a constant.