lerp_vec: Lerp the Max and Min of a Vector.

View source: R/utils.R

lerp_vecR Documentation

Lerp the Max and Min of a Vector.

Description

Finds the minium value of a vector and the maximum value of a vector, and then lerps between the two by the factor z.

Usage

lerp_vec(vec, z = 0.5)

Arguments

vec

numeric vector of values.

z

proportion to lerp by (0-1).


rforbiochemists/standard documentation built on Oct. 29, 2023, 11:14 a.m.