Description Usage Arguments Value Examples
This function scales a numeric value into a standardized interval [0,1].
A linear transformation method is used to map values of
(-infinity,infinity) to [0,1].
As input for x
, min
, max
is only required an numeric
value. Otherwise the function returns an error message.
1 | scale_feature(x, min, max)
|
x |
A numeric value that should be normalized. |
min |
A numeric value. |
max |
A numeric value. |
A scaled value between [0,1] of x
.
If the input x
,min
or max
is not a numeric value
or min is not smaller than max (min < max), an error message is returned.
1 | scale_feature(x = 2.5, min = 1, max = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.