Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


gk (version 0.6.0)

project: Project into a region

Description

Project a vector elementwise into a constrained region

Usage

project(x, xmin, xmax)

Value

Vector of closest values to x which satisfy the bounds

Arguments

x

Vector

xmin

Vector of lower bounds

xmax

Vector of upper bounds