This function handles the calculations of the Mu Solver. This function
runs inside sparse_mdc
.
mu_calc(d, v, EQ, dim, x, nk, p1, p2, delta)
- The current condition.
- Relationship matrix, describing relationship between d-1 and d.
- Equality matrix specifying the number of following terms to which mu_d is equal.
Total number of conditions, D.
- Matrix of mean values.
- Vector with the number of samples in each dimension for this cluster.
- Penalties on mean size.
- Penalties on mean difference.
Small term to ensure existance of solution.
A list containing two vectors containing the calculated values of mu_d | mu_d < mu_d-1 and mu_d | mu_d > mu_d-1 respecitively.