楼主: yaleen
5917 13

[程序分享] 论文求教hurst指数的计算 [推广有奖]

  • 0关注
  • 1粉丝

已卖:43份资源

博士生

10%

还不是VIP/贵宾

-

威望
0
论坛币
296 个
通用积分
0.3000
学术水平
2 点
热心指数
9 点
信用等级
2 点
经验
4120 点
帖子
211
精华
0
在线时间
251 小时
注册时间
2010-10-20
最后登录
2014-9-24

楼主
yaleen 发表于 2011-8-23 12:49:08 |AI写论文
50论坛币

现想计算hurst指数,带有所计算结果和运行的图,或者请加qq:245347225

关键词:Hurst指数 hurst Urs 论文

回帖推荐

糖糖78 发表于5楼  查看完整内容

我也想要类~

沙发
yaleen 发表于 2011-8-23 12:55:35
还能出50个币,追加悬赏。。。

藤椅
tmdxyz 发表于 2011-8-23 13:16:53
计算hurst 指数的 matlab 程序

% 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

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;

while npoints>4
   
    y=std(data);
    index=index+1;
    xvals(index)=binsize;
    yvals(index)=binsize*y;
   
    npoints=fix(npoints/2);
    binsize=binsize*2;
    for ipoints=1:npoints % average adjacent points in pairs
        data2(ipoints)=(data(2*ipoints)+data((2*ipoints)-1))*0.5;
    end
    data=data2(1:npoints);
   
end % while

xvals=xvals(1:index);
yvals=yvals(1:index);

logx=log(xvals);
logy=log(yvals);

p2=polyfit(logx,logy,1);
hurst=p2(1); % Hurst exponent is the slope of the linear fit of log-log plot

return;
已有 2 人评分学术水平 热心指数 收起 理由
yaleen + 1 + 1 热心帮助其他会员
liuxin9023 + 2 鼓励积极发帖讨论

总评分: 学术水平 + 1  热心指数 + 3   查看全部评分

板凳
yaleen 发表于 2011-8-23 13:36:52
楼上你好,我想要类似文献上的图,Hurst指数数值,和图标。谢谢~~~

报纸
糖糖78 发表于 2012-5-23 23:52:08
我也想要类~
Offer, come here!

地板
yaleen 发表于 2012-9-14 15:15:02
我现在有程序啦

7
zhjch13122 发表于 2013-5-8 14:35:19
最近一直在学校hurst指数问题

8
馨信 发表于 2014-2-8 19:24:46
tmdxyz 发表于 2011-8-23 13:16
计算hurst 指数的 matlab 程序

% The Hurst exponent
请问 第一个函数function []=hurst_exponent()是什么意思?O(∩_∩)O谢谢
学习,思索,再学习,再思索。

9
daajiu2002 发表于 2014-5-13 11:49:49
我也在学习中,如果能进一步涉及分形就更好了。。求助中

10
lanlingrd 学生认证  发表于 2016-1-29 10:09:21
yaleen 发表于 2012-9-14 15:15
我现在有程序啦
你好,能给我传一下你的Hurst指数计算程序吗,学习一下,974627890@qq.com

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-7 05:42