声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1971|回复: 5

[分形与混沌] 请教 关于G_P算法中输入参数的确定

[复制链接]
发表于 2007-9-4 13:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
在下列的G_P算法中:

function [ln_r,ln_C]=G_P(data,N,tau,min_m,max_m,ss)
% the function is used to calculate correlation dimention with G-P algorithm
%    计算关联维数的G-P算法
% data:the time series                       时间序列
% N: the length of the time series           时间序列长度
% tau: the time delay                        时间延迟
% min_m:the least embedded dimention m       最小的嵌入维数
% max_m:the largest embedded dimention m     最大的嵌入维数
% ss:the stepsize of r                       r的步长
%skyhawk
for m=min_m:max_m
    Y=reconstitution(data,N,m,tau);%reconstitute state space
    M=N-(m-1)*tau;%the number of points in state space
    for i=1:M-1
        for j=i+1:M
            d(i,j)=max(abs(Y(:,i)-Y(:,j)));%calculate the distance of each two           
        end                                %points in state space  计算状态空间中每两点之间的距离
    end
    max_d=max(max(d));%the max distance of all points   得到所有点之间的最大距离
    d(1,1)=max_d;
    min_d=min(min(d));%the min distance of all points   得到所有点间的最短距离
    delt=(max_d-min_d)/ss;%the stepsize of r            得到r的步长
    for k=1:ss
        r=min_d+k*delt;
        C(k)=correlation_integral(Y,M,r);%calculate the correlation integral
        ln_C(m,k)=log(C(k));%lnC(r)
        ln_r(m,k)=log(r);%lnr
        fprintf('%d/%d/%d/%d\n',k,ss,m,max_m);
    end
    plot(ln_r(m,:),ln_C(m,:));
    hold on;
end
fid=fopen('lnr.txt','w');
fprintf(fid,'%6.2f %6.2f\n',ln_r);
fclose(fid);
fid = fopen('lnC.txt','w');
fprintf(fid,'%6.2f %6.2f\n',ln_C);
fclose(fid);

其中输入参数min_m, max_m, ss 是怎样确定的?
谢谢!!
回复
分享到:

使用道具 举报

发表于 2007-9-4 15:17 | 显示全部楼层
请仔细搜索本版块,有一些帖子讲的也比较详细了!
 楼主| 发表于 2007-9-4 16:13 | 显示全部楼层
有吗?帖子的名称是什么啊?我输入G_P算法都搜不到!!!
发表于 2007-9-4 19:32 | 显示全部楼层
其实这几个参数是自己确定的,主要还是根据经验,没有特定的标准!
 楼主| 发表于 2007-9-4 20:41 | 显示全部楼层
运行G_P程序得到了ln_r和ln_C,那么嵌入维数如何确定呢?
 楼主| 发表于 2007-9-5 00:07 | 显示全部楼层
我取min_m=2,max_m=5,ss为大于数据的标准差的一半的整数,得到图形如下:

1.jpg

请问如何确定关联维d,进而求嵌入维数?
谢谢!!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-19 22:13 , Processed in 0.068918 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表