Changeset 849 for plugins/base1/se.lu.thep.wenni/trunk/test/wenni_test.cc
- Timestamp:
- Dec 1, 2008, 10:01:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base1/se.lu.thep.wenni/trunk/test/wenni_test.cc
r846 r849 21 21 along with WeNNI. If not, see <http://www.gnu.org/licenses/>. 22 22 */ 23 24 #include <config.h> 23 25 24 26 #include "c++_tools/gslapi/matrix.h" … … 47 49 bool teststatus=false; 48 50 49 teststatus|=check_raw_results(); 50 teststatus|=check_default_results(); 51 if (WeNNI_STATE == "base1") { 52 teststatus|=check_raw_results(); 53 teststatus|=check_default_results(); 54 } 51 55 52 56 std::string srcdir=get_srcdir(); 53 57 std::stringstream system_call; 54 system_call << "./nni -data default_results/wenni_logratio.data"58 system_call << "./nni -data " << srcdir << "/../data/wenni_logratio.data" 55 59 << " -neighbours 10 -weight " << srcdir 56 60 << "/../data/wenni_snr.data -weight_is_snr" … … 63 67 64 68 system_call.str(""); 65 system_call << "./nni -data default_results/wenni_logratio.data -neighbours 10" 66 << " -nni_algorithm kNNI -weight default_results/wenni_weight.data" 69 system_call << "./nni -data " << srcdir 70 << "/../data/wenni_logratio.data -neighbours 10" 71 << " -nni_algorithm kNNI -weight " << srcdir 72 << "/../data/wenni_weight.data" 67 73 << " -weight_cutoff 0.5 > knni_imputed.data"; 68 74 if (system(system_call.str().c_str())) {
Note: See TracChangeset
for help on using the changeset viewer.