format_values: format_values

Description Usage Arguments Value

View source: R/format_values.R

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

1
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 input is set to 1 (2), the input is additionally scaled (transformed) using the method scale_me (transform_me)

min

minimum value among all instances

max

maximum value among all instances

mean

mean value among all instances


CalibratR documentation built on Aug. 19, 2019, 5:04 p.m.