数据标准化处理(测试).m
上传用户:yetwld
上传日期:2010-01-26
资源大小:82k
文件大小:2k
- %数据标准化处理(测试数据集)
- %未标准化的测试模数据集
- %校验数据集,30×6
- jg_data=[-0.94578 1.2009 0.86645 -0.18396 0.19433 0.19114;
- 0.093094 0.69379 -0.87823 -0.35258 0.020337 -0.87556;
- -0.32246 0.1867 -0.87823 -1.0271 -1.1976 2.3245;
- 0.093094 2.215 1.5643 -1.0271 -1.3716 0.057803;
- -0.32246 1.9615 0.86645 -1.3643 -0.67564 0.057803;
- 0.093094 0.69379 0.16858 -0.68983 -1.4586 0.99117;
- -0.73801 0.1867 0.16858 -0.35258 -0.67564 1.2578;
- -0.94578 1.9615 0.86645 -1.0271 -0.50164 -1.4089;
- -0.73801 -0.066843 -0.52929 -0.68983 -0.50164 0.99117;
- -0.53023 1.708 -0.52929 -0.52121 -0.50164 -0.20887;
- -0.94578 -0.066843 -0.52929 -0.01533 -0.50164 0.45782;
- -0.94578 1.9615 -0.18036 -0.52121 -0.50164 -0.47555;
- -0.53023 0.1867 -0.18036 -1.0271 -1.3716 0.72449;
- -0.94578 1.2009 0.86645 -0.68983 -1.1106 -0.87556;
- 0.30087 0.69379 -0.52929 -0.01533 0.45532 0.32448;
- -0.11468 0.69379 0.16858 -0.68983 -0.93663 -0.60889;
- -0.73801 -0.066843 -0.87823 -1.1957 -0.84963 0.99117;
- -0.53023 0.1867 -0.18036 -1.0271 -0.93663 -0.47555;
- -0.73801 1.2009 0.16858 -1.0271 -0.93663 0.19114;
- -0.53023 -1.081 -0.52929 -0.85846 -1.0236 0.85783;
- -0.32246 1.708 -0.52929 -0.68983 -0.32765 2.8573;
- 0.30087 -0.32039 -0.87823 -0.52121 -0.84963 -0.34221;
- 0.50864 -0.32039 -0.87823 -0.52121 -0.32765 -0.075535;
- -0.94578 0.1867 0.86645 -0.35258 -0.67564 0.71857;
- 0.30087 0.69379 0.86645 -0.68983 -1.1106 0.59115;
- -0.11468 -1.5881 -0.18036 -0.01533 0.19433 2.5912;
- -0.94578 0.44024 -0.52929 -0.01533 -0.50164 0.72449;
- 0.71642 0.59237 -0.52929 -1.3643 -1.0236 0.32448;
- 2.1708 0.69379 0.51751 -1.3643 -1.2846 -0.20887;
- -0.73801 1.2009 0.72687 -1.0271 -1.1976 1.1245];
- %标准化处理
- Xmax=max(jg_data);
- Xmin=min(jg_data);
- e1=ones(30,1);e2=ones(30,6);
- %测试数据集t_data[]
- t_data=0.9*e2-0.8*(e1*Xmax-jg_data)./(e1*(Xmax-Xmin));