pf_normalize: Normalise pF values to [0, 1]

View source: R/utils.R

pf_normalizeR Documentation

Normalise pF values to [0, 1]

Description

Maps the pF domain ⁠[pf_left, pf_right]⁠ linearly to ⁠[0, 1]⁠. Values outside the domain are clipped.

Usage

pf_normalize(pf, pf_left = -2, pf_right = 7.6)

Arguments

pf

Numeric vector of pF values.

pf_left

Left boundary of the pF domain (default -2).

pf_right

Right boundary of the pF domain (default 7.6).

Value

Numeric vector in ⁠[0, 1]⁠.

Examples

pf_normalize(c(-2, 0, 4, 7.6))


soilFlux documentation built on Dec. 4, 2026, 5:10 p.m.