adj_clamp {picohdr} | R Documentation |
Clamp values outside the specified range
adj_clamp(arr, lo = -Inf, hi = Inf)
arr |
array or matrix |
lo |
low value. Values lower than this will be replaced with this value. Default: -Inf |
hi |
Values higher than this will be replaced with this value. Default: Inf |
adjusted array
Other array adjustment functions:
adj_gamma()
,
adj_infinite()
,
adj_rescale()
,
adj_shift_negatives_global()
,
adj_shift_negatives_local()
arr <- array(1:12, c(4, 3, 1))
arr
adj_clamp(arr, 10, 20)