domain_sanitize: Map to Acceptable Value

View source: R/Domain_methods.R

domain_sanitizeR Documentation

Map to Acceptable Value

Description

Map values that are close enough to the given Domain to values that are truly acceptable.

This is used to map numeric() values that are close to but outside the acceptable interval to the interval bounds. It is also used to convert integer-valued numeric values to integer values for p_int().

Usage

domain_sanitize(param, values)

Arguments

param

(Domain).

values

(any) – format depending on the Domain.

Value

any – format depending on the Domain.


mlr-org/phng documentation built on April 22, 2024, 4:34 p.m.