永发信息网

求一个近似熵快速算法的matlab程序

答案:2  悬赏:10  手机版
解决时间 2021-01-26 06:45
求一个近似熵快速算法的matlab程序
最佳答案
快速近似熵算法:function [ApEn_value,Cmr,Cmr_1] = fast_ApEn(signal,r_factor)% Estimate the Aproximate Entropy (ApEn) of a signal, using a fast % algorithm, for the ApEn parameter m equal to 2 % The pattern length m for which this routine was implemented is 2. For another values of m, the instructions marked with a (*) in the end must be changed.% m=1 or m=2% r between 0.1*STD and 0.25*STD, where STD is the signal standard deviation % N (signal length) between 75 and 5000;% [ApEn_value] = fast_ApEn(signal,r_factor);% Input variables:% signal - signal% r_factor - factor of the criterion of similarity r_factor*std(signal)% Output variables:% ApEn_value - ApEn calculated from the signal% Optional output variables:% C_m% C_m_1% if length(signal)5000% slength=input('Signal length inappropriate. Continue anyway? (y/n)','s');% if strcmpi(slength,'y')==0% return% end% end% if r_factor0.25% r_factor_flag=input('Value for r parameter is inappropriate. Continue anyway? (y/n)','s');% if strcmpi(r_factor_flag,'y')==0% return% end% end% Initial variables definition.signal=signal(:);N=length(signal);Cmr_ij=[];Cmr_i=[];Cmr=[];Cmr_ij_1=[];Cmr_i_1=[];Cmr_1=[];% D and S matrixes computation.D=abs(signal*ones(1,N)-ones(N,1)*signal');S=zeros(N,N);S(find(D
全部回答
这个答案应该是对的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
弓的拉力大小与什么有关?
我穿成这样去表弟家好吗?
什麼时候用compared什麼时候用comparing?
如何把阿拉伯数字转换成罗马数字
可以作为二氧化硫吸着剂的物质有()、氨水和氢
迁怒猜一国名
football not the is on chair the 连词成句
请问申请工商营业执照年检中联络员一栏授权时
男朋友属鼠性格急起个什爱称
220v漏电开关有电流声如何解决,开电热水器时
我家狗狗打完抗体晚上就死了,本来不去医院只
【十一届三中全会时间】...时间先后顺序排列
戴尔充电器第三条线信号检测用什么代替信号
分子氨和离子氨哪个毒性大
【倍比学语】倍比学语哪里有卖?听朋友说倍比
推荐资讯
沉香有什么用?
我想资询一下小区车库可以高价卖给业主吗
汤不辣是什么意思
什么是流氓行为?
有首我忘了歌名!有一段歌词叫!放手吧,别想
头上长了一个包为什么周围的头发特别容易掉
abcd英文什么读
婷美化妆品店地址在什么地方,想过去办事
银行卡怎么用支付宝转帐需要开通网银吗具体步
10克铜和氧化铜的混合物,通入足量的一氧化碳,
网通说我家宽带提速了,但下东西时跟以前一样
成语餐风宿雨的意思是什么啊?有知道释义的请
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?