This is a function to apply z-Score normalization to a matrix or dataframe.
Usage
znorm(data)
Arguments
data
The dataset to be normalized, including classes
Value
zdata
the normalized data set
Details
By using this type of normalization, the mean of the transformed set
of data points is reduced to zero by subtracting the mean of each
attribute from the values of the attributes and dividing the result
by the standard deviation of the attribute. Uses the function
scale found in the base library.
Removes classes before normalization, and returns normalized data set
complete with classes rejoined.
References
Hann, J., Kamber, M. (2000). Data Mining: Concepts and Techniques.
Morgan Kaufman Publishers.