restrict: Restrict the patterns to the [-1,1] interval.
Description
This function centers and scales the data set so as to be confined in the [-1,1] interval. Then no x.max nor x.min should be indicated. In case new data is considered, the user may apply the same transformation according to the limits of the previous data set, thus obtaining, for example, the image of a new data set in the interval used for training.
Usage
restrict(x,x.max,x.min)
Arguments
x
Data set to be centered and scaled.
x.max
Upper bound of a previous data set.
x.min
Lower bound of a previous data set.
Value
This function returns a list. The first element contains the transformed x values. The second element contains x.max and the third x.min.
encoding
latin1
References
Simon Haykin. Neural Networks. A comprehensive foundation. 2nd Edition.