Function for Weights Adjustments
This function provides a trimming procedure to force the weights to be within the provided boundaries
A numerical vector of weights
A numerical vector of lower bounds
A numerical vector of upper bounds
The function produces trimmed weights, which will be the input for the rounding
technique before integer calibration. When the weights are bounded, the function rounds-up
the lower bounds and rounds-down the upper. If the condition
upper > lower + 1,
an error is returned.
A vector of adjusted weights
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.