Lightweight Numerical Operations


[Up] [Top]

Documentation for package ‘numops’ version 1.0.0

Help Pages

adjacent_difference Adjacent differences with preserved length
clamp Clamp values to an interval
clamp01 Clamp values to the unit interval
divide_or Divide with a fallback value
inv_lerp Inverse linear interpolation
in_range Test whether values are in an interval
l2_norm Euclidean norm
lerp Linear interpolation
midpoint Midpoint between values
normalize_l2 Normalize to unit Euclidean length
remap Remap values between intervals
wrap Wrap values to a periodic interval