updateWts function

Update the Residual and X Weights - Generic and Methods