下载此文档

Hurst指数的Matlab实现.doc


文档分类:高等教育 | 页数:约2页 举报非法文档有奖
1/2
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/2 下载此文档
文档列表 文档介绍
% 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, ******@
% 13 Nov 2005
function []=hurst_exponent() disp('testing Hurst calculation');
n=100; data=rand(1,n);
plot(data);
hurst=estimate_hurst_exponent(data);
[s,err]=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 PhD dissertation by Hendrik J % Blok, and I make no guarantees whatsoever about the rigor of this approach % or the accuracy of results. Use it at your own risk.
%
% Bill Davidson
% 21 Oct 2003
function [hurst] = estimate_hurst_exponent(data0) % data set
data=data0; % make a local copy
[M,npoints]=size(data0);
yvals=zeros(1,npoints); xvals=zeros(1,npoints);
data2=zeros(1,npoints);
index=0;
binsize=1;
whi

Hurst指数的Matlab实现 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数2
  • 收藏数0 收藏
  • 顶次数0
  • 上传人小辰GG
  • 文件大小27 KB
  • 时间2021-12-07