mrmr算法,程序运行时出现此错误:函数或变量 't' 无法识别
조회 수: 1 (최근 30일)
이전 댓글 표시
function [fea] = mrmr_mid_d(d, f, K)
% function [fea] = mrmr_mid_d(d, f, K)
%
% MID scheme according to MRMR
% d-输入N*M矩阵,N个采样值,M个特征,特征向量
% f-输入的N*1向量,分类结果
% K-选择的特征的个数
data=importdata('Iris.data');
d=data(:,1:end-1);
f=data(:,end);
K=3;
bdisp=0;
nd = size(d,2);
nc = size(d,1);
t1=cputime;
for i=1:nd
t(i) = mutualinfo(d(:,i), f);
end
fprintf('calculate the marginal dmi costs %5.1fs.\n', cputime-t1);
[tmp, idxs] = sort(-t);
fea_base = idxs(1:K);
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 COM Component Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!