数据标准化处理(测试).m
上传用户:yetwld
上传日期:2010-01-26
资源大小:82k
文件大小:2k
源码类别:

TAPI编程

开发平台:

Matlab

  1. %数据标准化处理(测试数据集)
  2. %未标准化的测试模数据集
  3. %校验数据集,30×6
  4. jg_data=[-0.94578 1.2009 0.86645 -0.18396 0.19433 0.19114;
  5. 0.093094 0.69379 -0.87823 -0.35258 0.020337 -0.87556;
  6. -0.32246 0.1867 -0.87823 -1.0271 -1.1976 2.3245;
  7. 0.093094 2.215 1.5643 -1.0271 -1.3716 0.057803;
  8. -0.32246 1.9615 0.86645 -1.3643 -0.67564 0.057803;
  9. 0.093094 0.69379 0.16858 -0.68983 -1.4586 0.99117;
  10. -0.73801 0.1867 0.16858 -0.35258 -0.67564 1.2578;
  11. -0.94578 1.9615 0.86645 -1.0271 -0.50164 -1.4089;
  12. -0.73801 -0.066843 -0.52929 -0.68983 -0.50164 0.99117;
  13. -0.53023 1.708 -0.52929 -0.52121 -0.50164 -0.20887;
  14. -0.94578 -0.066843 -0.52929 -0.01533 -0.50164 0.45782;
  15. -0.94578 1.9615 -0.18036 -0.52121 -0.50164 -0.47555;
  16. -0.53023 0.1867 -0.18036 -1.0271 -1.3716 0.72449;
  17. -0.94578 1.2009 0.86645 -0.68983 -1.1106 -0.87556;
  18. 0.30087 0.69379 -0.52929 -0.01533 0.45532 0.32448;
  19. -0.11468 0.69379 0.16858 -0.68983 -0.93663 -0.60889;
  20. -0.73801 -0.066843 -0.87823 -1.1957 -0.84963 0.99117;
  21. -0.53023 0.1867 -0.18036 -1.0271 -0.93663 -0.47555;
  22. -0.73801 1.2009 0.16858 -1.0271 -0.93663 0.19114;
  23. -0.53023 -1.081 -0.52929 -0.85846 -1.0236 0.85783;
  24. -0.32246 1.708 -0.52929 -0.68983 -0.32765 2.8573;
  25. 0.30087 -0.32039 -0.87823 -0.52121 -0.84963 -0.34221;
  26. 0.50864 -0.32039 -0.87823 -0.52121 -0.32765 -0.075535;
  27. -0.94578 0.1867 0.86645 -0.35258 -0.67564 0.71857;
  28. 0.30087 0.69379 0.86645 -0.68983 -1.1106 0.59115;
  29. -0.11468 -1.5881 -0.18036 -0.01533 0.19433 2.5912;
  30. -0.94578 0.44024 -0.52929 -0.01533 -0.50164 0.72449;
  31. 0.71642 0.59237 -0.52929 -1.3643 -1.0236 0.32448;
  32. 2.1708 0.69379 0.51751 -1.3643 -1.2846 -0.20887;
  33. -0.73801 1.2009 0.72687 -1.0271 -1.1976 1.1245];
  34. %标准化处理
  35. Xmax=max(jg_data);
  36. Xmin=min(jg_data);
  37. e1=ones(30,1);e2=ones(30,6);
  38. %测试数据集t_data[]
  39. t_data=0.9*e2-0.8*(e1*Xmax-jg_data)./(e1*(Xmax-Xmin));