資源簡介
Matalb.是關于Husrt指數的。在數據分析中會用到的。
代碼片段和文件信息
%?The?Hurst?exponent
%--------------------------------------------------------------------------
%?The?first?20?lines?of?code?are?a?small?test?driver.
%?You?can?delete?or?comment?out?this?part?when?you?are?done?validating?the?
%?function?to?your?satisfaction.
%
%?Bill?Davidson?quellen@yahoo.com
%?13?Nov?2005
%?Matlab??????????
%??????????????????
%??????????????
function?[]=hurst_exponent()
disp(‘testing?Hurst?calculation‘);
web?-browser?http://www.ilovematlab.cn/thread-14631-1-1.html
n=100;
data=rand(1n);
plot(data);
hurst=estimate_hurst_exponent(data);
[serr]=sprintf(‘Hurst?exponent?=?%.2f‘hurst);disp(s);
%--------------------------------------------------------------------------
%?This?function?does?dispersional?analysis?on?a?data?series?then?does?a?
%?Matlab?polyfit?to?a?log-log?plot?to?estimate?the?Hurst?exponent?of?the?
%?series.
%
%?This?algorithm?is?far?faster?than?a?full-blown?implementation?of?Hurst‘s
%?algorithm.??I?got?the?idea?from?a?2000
- 上一篇:探索性數據分析源代碼.rar
- 下一篇:數值分析每章編程題matlab實現
評論
共有 條評論