format_values {CalibratR} | R Documentation |
format_values
Description
returns formatted input.
If specified, the uncalibrated input is mapped to the [0;1] range using scaling (scale_me
) or transforming (transform_me
)
Usage
format_values(cases, control, input, min = NULL, max = NULL, mean = NULL)
Arguments
cases |
instances from class 1 |
control |
instances from class 0 |
input |
single integer (0, 1 or 2). specify if the input should be formatted (=0), formatted and scaled (=1) or formatted and transformed (=2) |
min |
min value of the original data set, default=calculated on input |
max |
max value of the original data set, default=calculated on input |
mean |
mean value of the original data set, default=calculated on input |
Value
list object with the following components:
formated_values |
formatted input. If |
min |
minimum value among all instances |
max |
maximum value among all instances |
mean |
mean value among all instances |