作者jord98972005 (旧的)
看板MATLAB
标题[讨论] matlab的center & scale
时间Sat Apr 11 23:07:37 2015
由於需要使用到curve fitting box的功能
http://ppt.cc/RSva
因为用curve fitting 会先标准化
where z is centered and scaled:
z = (x-mu)/sigma
mu = 4200.5
sigma = 2425
但是问题在我网路上一般标准化的公式(x-mean(x))/std(x)
这样算出来的mu跟sigma完全差很大
help理面有提到
When you select this option, the columns of the design matrix are brought to
the same order of magnitude by centering the X data at zero mean and scaling
the data to a unit standard deviation:
NewXData=(XData-mean(XData))./std(XData)
好像是说样本数 (sample)越多,mu和sigma也会变大
我试了一下也是如此
但不知道要怎麽用polyfit去执行,因为我必须把数字拿出来,
所以不能用toolbox gui去算QQ
感谢回答><
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.185.189.179
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MATLAB/M.1428764860.A.00F.html