Corrects the upper bound for current parameter. This correction only applies for parameters that are free to vary within the restriction. Then the length of the remaining stick must be based on the largest free parameter value.
.adjustUpperBoundForFreeParameters(
theta_mat,
k,
upper,
nr_mult_equal,
smaller_values,
larger_values,
hyp_direction
)
matrix with samples from truncated Dirichlet density
current parameter index
current upper bound
vector of multiplicative elements of collapsed parameters
index of parameters that are smaller than the current one
index of parameters that are larger than the current one
specifies whether the imposed inequality constrained imposes an increasing (i.e., 'smaller') or decreasing (i.e., 'larger') trend
adjusted upper bound