ParamHelpers (version 1.14)

repairPoint: Repairs values of numeric and integer parameters out side of constraints.

Description

Clips values outside of box constraints to bounds.

Usage

repairPoint(par.set, x, warn = FALSE)

Arguments

par.set

ParamSet Parameter set.

x

list List of parameter values. Must be in correct order. Values corresponding to non-numeric/integer types are left unchanged.

warn

(logical(1)) Boolean indicating whether a warning should be printed each time a value is repaired. Default is FALSE.

Value

list: List of repaired points.