adj_shift_negatives_global {picohdr}R Documentation

Shift all values such that the minimum of the array is 0

Description

Shift all values such that the minimum of the array is 0

Usage

adj_shift_negatives_global(arr)

Arguments

arr

array or matrix

Value

adjusted array

See Also

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

Examples

arr <- array(c(-5, 1:23), c(4, 3, 2))
arr
adj_shift_negatives_global(arr)

[Package picohdr version 0.1.1 Index]