umap (version 0.2.2.0)

clip: Force (clip) a value into a finite range

Description

This implementation exists mainly to facilitate testing the Rcpp version.

Usage

clip(x, xmax = 4)

Arguments

x

numeric; single value or a vector

xmax

maximum value for x

Value

numeric values in range [-xmax, xmax]