encode_unit {dials} | R Documentation |
Class for converting parameter values back and forth to the unit range
Description
Class for converting parameter values back and forth to the unit range
Usage
encode_unit(x, value, direction, ...)
## S3 method for class 'quant_param'
encode_unit(x, value, direction, original = TRUE, ...)
## S3 method for class 'qual_param'
encode_unit(x, value, direction, ...)
Arguments
x |
A |
value |
The original values should be either numeric or character. When
converting back, these should be on |
direction |
Either "forward" (to |
original |
A logical; should the values be transformed into their natural units. |
Details
For integer parameters, the encoding can be lossy.
Value
A vector of values.
[Package dials version 1.3.0 Index]