|
316 | 316 | set(gcf,'color','w'); |
317 | 317 | set(gca,'FontSize',12); |
318 | 318 |
|
| 319 | +%% Skewness |
| 320 | +th = 1.0; |
| 321 | +true_class = data(:,4) < 0.1 & data(:,5)<0.1; |
| 322 | +pred_class = data(:,14) > th; |
| 323 | + |
| 324 | +C = confusionmat(true_class,pred_class); |
| 325 | + |
| 326 | +figure(1001) |
| 327 | +subplot(1,2,1), confusionchart(C,{'ND','D'},'Normalization','row-normalized','GridVisible','off','XLabel','') |
| 328 | +title('Skew > 0.9 (row normalized)') |
| 329 | +set(gcf,'color','w'); |
| 330 | +set(gca,'FontSize',12); |
| 331 | +% |
| 332 | +subplot(1,2,2), confusionchart(C,{'ND','D'},'Normalization','column-normalized','GridVisible','off') |
| 333 | +title('Skew > 0.9 (column normalized)') |
| 334 | +set(gcf,'color','w'); |
| 335 | +set(gca,'FontSize',12); |
| 336 | + |
| 337 | +%% Kurtosis |
| 338 | +th = 7.5; |
| 339 | +true_class = data(:,4) < 0.1 & data(:,5)<0.1; |
| 340 | +pred_class = data(:,15) > th; |
| 341 | + |
| 342 | +C = confusionmat(true_class,pred_class); |
| 343 | + |
| 344 | +figure(1002) |
| 345 | +subplot(1,2,1), confusionchart(C,{'ND','D'},'Normalization','row-normalized','GridVisible','off','XLabel','') |
| 346 | +title('Kurt > 0.9 (row normalized)') |
| 347 | +set(gcf,'color','w'); |
| 348 | +set(gca,'FontSize',12); |
| 349 | +% |
| 350 | +subplot(1,2,2), confusionchart(C,{'ND','D'},'Normalization','column-normalized','GridVisible','off') |
| 351 | +title('Kurt > 0.9 (column normalized)') |
| 352 | +set(gcf,'color','w'); |
| 353 | +set(gca,'FontSize',12); |
| 354 | + |
319 | 355 |
|
320 | 356 |
|
321 | 357 |
|
0 commit comments