Calcualtes the penalty terms for penalizing mean size and mean difference.
This function runs inside sparse_mdc
.
pen_calculator(lambda1, lambda2, nk, delta)
Calculated penalty parameter for mean size.
Calculated penalty parameter for mean difference.
Vector containing the number of samples in each dimension.
Small term to ensure existance of solution, default is 0.0000001.
a list with two vectors containing the penalty terms for mean size and mean difference respectively.