function fuzzyen = Fuzzy_Entropy( dim, r, data, tau )
% FUZZYEN Fuzzy Entropy
% calculates the fuzzy entropy of a given time series data
% Similarity definition based on vectors' shapes, together with the
% exclusion of self-matches, earns FuzzyEn stronger relative consistency
% and less dependence on data length.
% dim : embedded dimension
% r : tolerance (typically 0.2 * std)
% data : time-series data % tau : delay time for downsampling (user can omit this, in which case
% the default value is 1)
if nargin < 4, tau = 1; end
if tau > 1, data = downsample(data, tau); end
N = length(data);
Phi = zeros(1,2);
for m = dim:dim+1
Ci = zeros(1,N-m+1);
dataMat = zeros(m,N-m+1);
% setting up data matrix - form vectors
for j = 1:m
dataMat(j,:) = data(j:N-m+j);
end
% baseline
U0 = mean(dataMat);
% remove baseline and calculate the absolute values
Sm = abs(dataMat - repmat(U0,m,1));
% Given vector Si, calculate the similarity degree between its'
% neighboring vector Sj
for i = 1:N-m+1
Sm_tmp = Sm;
Sm_tmp(:,i) = []; % excluded self-matches
% maximum absolute difference of the corresponding scalar components
% of Si and Sj (j≧i)
dij = max(repmat(Sm(:,i),1,N-m) - Sm_tmp);
% similarity degree
Aij = exp(-log(2)*(dij/r).^2);
% averaging all the similarity degree of its neighboring vectors Sj
Ci(i) = sum(Aij)/(N - m);
end
% summing over the counts
Phi(m-dim+1) = sum(Ci)/(N-m+1); % 耳_m and 耳_m+1
end
fuzzyen = log(Phi(1))-log(Phi(2)); % fuzzyen = ln(耳_m)-ln(耳_m+1)
end
没有合适的资源?快使用搜索试试~ 我知道了~
FastICA_ICA_matlab_EEG_单通道FASTICA_fastICA单通道
共5个文件
rar:2个
pdf:1个
csv:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 16 下载量 90 浏览量
2021-09-11
09:53:10
上传
评论 2
收藏 860KB ZIP 举报
温馨提示
MATLAB中基于CEEDMAN与FastICA算法的单通道信号规律噪声的滤除方法
资源推荐
资源详情
资源评论
收起资源包目录
FastICA_ICA_matlab_EEG_单通道FASTICA_fastICA单通道_源码.zip (5个子文件)
MATLAB中基于CEEDMAN与FastICA算法的单通道信号规律噪声的滤除方法
Fuzzy_Entropy.m 2KB
CEEMDAN_V00.rar 12KB
x.csv 1022B
基于CEEMDAN_ICA的单通道脑电信号眼电伪迹滤除方法_罗志增 (1).pdf 405KB
FastICA_25.rar 461KB
共 5 条
- 1
心梓
- 粉丝: 807
- 资源: 8057
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页