Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

inbounds

Clip value to a given range


Description

Clip x to the interval [l, u]. This is useful to enforce box constraints.

Usage

inbounds(x, l, u)

Arguments

x

Value to clip.

l

Lower limit.

u

Upper limit.

Value

l if x < l, u if x > u else x.

Author(s)


emoa

Evolutionary Multiobjective Optimization Algorithms

v0.5-0.1
GPL-2
Authors
Olaf Mersmann <olafm@statistik.tu-dortmund.de>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.