Function for normalizing the range of values of a continuous variable using a linear scaling within the range of the variable.

1 | ```
LinearScaling(x, mx = max(x, na.rm = T), mn = min(x, na.rm = T))
``` |

`x` |
A vector with numeric values |

`mx` |
The maximum value of the continuous variable being normalized
(defaults to the maximum of the values in |

`mn` |
The minimum value of the continuous variable being normalized
(defaults to the minimum of the values in |

The linear scaling normalization consist in transforming the value x into

(x - MIN) / (MAX - MIN)

An object with the same dimensions as `x`

but with the values normalized

Luis Torgo ltorgo@dcc.fc.up.pt

Torgo, L. (2010) *Data Mining using R: learning with case studies*,
CRC Press (ISBN: 9781439810187).

http://www.dcc.fc.up.pt/~ltorgo/DataMiningWithR

`scale`

, `SoftMax`

, `ReScaling`

1 2 3 | ```
## A simple example with the algae data set
summary(LinearScaling(algae[,'NO3']))
summary(algae[,'NO3'])
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.