[討論] matlab的center & scale

看板MATLAB作者 (舊的)時間9年前 (2015/04/11 23:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
由於需要使用到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://www.ptt.cc/bbs/MATLAB/M.1428764860.A.00F.html
文章代碼(AID): #1LAJYy0F (MATLAB)