adj_infinite: Replace infinite values with the minimum/maximum of the...

View source: R/adjust-array.R

adj_infiniteR Documentation

Replace infinite values with the minimum/maximum of the finite values

Description

Replace infinite values with the minimum/maximum of the finite values

Usage

adj_infinite(arr)

Arguments

arr

array or matrix

Value

adjusted array

See Also

Other array adjustment functions: adj_clamp(), adj_gamma(), adj_rescale(), adj_shift_negatives_global(), adj_shift_negatives_local()

Examples

arr <- array(c(-Inf, Inf, 1:10), c(4, 3, 1))
arr
adj_infinite(arr)

picohdr documentation built on Oct. 28, 2024, 5:08 p.m.