init_write.m
来自「Variable Reduction Testbench通过对变量进行相关性分析」· M 代码 · 共 36 行
M
36 行
function init_write(SimpleCorr_T, R2_T, KIF_T)
% -------------------------------------------------------------------------
% this code is part of the 'Reduction Testbench' suite
% developed by A. Manganaro, R. Todeschini, A. Ballabio, D. Mauri
% 2006 - Milano Chemometrics and QSAR Research Group
% -------------------------------------------------------------------------
%
%
% init_write(SimpleCorr_T, R2_T, KIF_T)
%
% init_write writes to the init file the values of the threshold used in
% the Simple Pairwise Correlation and R2 methods.
%
% Input:
% SimpleCorr_T = Simple Pairwise Correlation threshold
% R2_T = R2 threshold
% KIF_T = KIF threshold
echo off;
try
% Try to open and write the init file
fid = fopen('reduction.ini','w');
fprintf(fid,'%1.3f %1.3f %1.3f',[SimpleCorr_T R2_T KIF_T]);
fclose(fid);
catch
disp(' Error - unable to write to disk init file');
end
echo on;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?