Does some knows what MATLAB does exacly (whis formula is used) for function mapminmax to scales the inputs and targets so that they fall in the range [-1,1].
Regards
hey Hayrettin;
matlab uses the following algorithm to scale inputs & targets to fall in a certain range :
y = (ymax-ymin)*(x-xmin)/(xmax-xmin) + ymin;
where :
ymax= max. value of specified range in this case = 1 ( which is default for mapminmax command)
ymin= min. value of specified range in this case=-1 ( also default value)
x= value to be scaled.
xmax= max. value of numbers to be scaled
xmin= min. value of numbers to be scaled
N.B.:
if u wanted to scale your data so that they would fall in another range such as [0,0.9] instead of [-1,1], dont use mapminmax command instead use it's mathematical form to scale data manually & set value of ymax = 0.9 & ymin=0.1 & so on.
Hope this was helpful