lerp: Linear interpolation of a value

View source: R/utils.R

lerpR Documentation

Linear interpolation of a value

Description

Linear interpolation of a value

Usage

lerp(x, min, max)

Arguments

min

numeric. Minimum of the desired range.

max

numeric. Maximum of the desired range.

x.

numeric. Normalized input value to be transformed. Value must be between 0-1.

Value

Value of x within the desired range given by min, max.

Examples

lerp(c(0.1, 0.25, 0.5, 0.75), min = 0, max = 100)

jcalendo/coriell documentation built on March 5, 2025, 5:42 a.m.