Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqi1919 committed Sep 26, 2016
1 parent e458e59 commit 22abe1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/PlotOutliers/ExperimentRcvx.m
Expand Up @@ -19,7 +19,7 @@
maxiter=10000;
tol=1e-7;
lambda=[0.02, 0.03, 0.04];
z=[0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5]
z=0.1 : 0.01 : 0.5;
for i=1:length(lambda)
for j=1:length(z);
[P_Rcvx{i,j},Q_Rcvx{i,j},fun_Rcvx{i,j},iter(i,j)]=RClust(X,lambda(i),z(j),maxiter,tol,0);
Expand All @@ -34,22 +34,22 @@
end

for i=1:100
for j=1:41
weight_b(i,j)=weight_Q{5,j}(i,1);
for j=1:length(z)
weight_b(i,j)=weight_Q{1,j}(i,1);
end
end
x=[0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.3,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.39,0.4,0.41,0.42,0.43,0.44,0.45,0.46,0.47,0.48,0.49,0.5]

for i=1:10
plot(x,weight_b(i,:),'r--');
plot(z,weight_b(i,:),'r--');
hold on;
end

for i=11:100
plot(x,weight_b(i,:),'k:');
plot(z,weight_b(i,:),'k:');
hold on;
end
set(gca,'Position',[.1 .1 .4 0.8]);
xlabel('\beta');
ylabel('feature weight');
title('\alpha=0.040');
title('\alpha=0.020');
set(gca,'FontSize',12);

0 comments on commit 22abe1a

Please sign in to comment.