scale_me: scale_me

Description Usage Arguments Details Value

View source: R/format_values.R

Description

maps all instances in x to the [0;1] range using the equation:
y = (x-min)/(max-min)
If no values for min and max are given, they are calculated per default as min=min(x) and max=max(x)

Usage

1

Arguments

x

vector of predictions

min

minimum of x, Default: NULL

max

maximum of x, Default: NULL

Details

if x is greater (smaller) than max (min), its calibrated prediction is set to 1 (0) and warning is triggered.

Value

scaled values of x


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