GETLOO.M
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:

语音合成与识别

开发平台:

Matlab

  1. % Get waveData
  2. %load waveData.mat
  3. close all
  4. load dist0.mat % Original
  5. figure
  6. waveData = loo(waveData, distmat, 1);
  7. rank = [waveData.rank];
  8. plotpie(rank);
  9. title('File-based LOO test (original features)');
  10. fprintf('File-based LOO test (original features): %g%%n', ...
  11. sum(rank==1)/length(rank)*100);
  12. figure
  13. waveData = loo(waveData, distmat, 2);
  14. rank = [waveData.rank];
  15. plotpie(rank);
  16. title('Person-based LOO test (original features)');
  17. fprintf('Person-based LOO test (original features): %g%%n', ...
  18. sum(rank==1)/length(rank)*100);
  19. load dist1.mat % Normalized features
  20. figure
  21. waveData = loo(waveData, distmat, 1);
  22. rank = [waveData.rank];
  23. plotpie(rank);
  24. title('File-based LOO test (normalized features)');
  25. fprintf('File-based LOO test (normalized features): %g%%n', ...
  26. sum(rank==1)/length(rank)*100);
  27. figure
  28. waveData = loo(waveData, distmat, 2);
  29. rank = [waveData.rank];
  30. plotpie(rank);
  31. title('Person-based LOO test (normalized features)');
  32. fprintf('Person-based LOO test (normalized features): %g%%n', ...
  33. sum(rank==1)/length(rank)*100);