powered by
This implementation exists mainly to facilitate testing the Rcpp version.
clip(x, xmax = 4)
numeric; single value or a vector
maximum value for x
numeric values in range [-xmax, xmax]