Function HUwei transforms vector u as follows
\[
HUwei(u)= \left\{
\begin{array}{cc}
1 & |u/c| \leq 1 \\
c \times \frac{\mbox{sign}(u)}{u} & |u/c|>1 \\
\end{array}
\right.
\]
See equation (2.32) p. 28 of Maronna et al. (2006)
References
Maronna, R.A., Martin D. and Yohai V.J. (2006), "Robust Statistics, Theory
and Methods", Wiley, New York.
Riani, M., Cerioli, A. and Torti, F. (2014), On consistency factors and
efficiency of robust S-estimators, "TEST", Vol. 23, pp. 356-387.