ptp: Peak-to-peak (range): max(x) - min(x)

View source: R/084_atoms_ptp.R

ptpR Documentation

Peak-to-peak (range): max(x) - min(x)

Description

Computes the range of values along an axis: max(x) - min(x). The result is always nonnegative.

Usage

ptp(x, axis = NULL, keepdims = FALSE)

Arguments

x

An Expression or numeric value.

axis

NULL (all), 0 (columns), or 1 (rows).

keepdims

Logical; keep reduced dimension?

Value

An Expression representing max(x) - min(x).


CVXR documentation built on March 6, 2026, 9:10 a.m.