Changeset 601 for cpp/frams/_demos
- Timestamp:
- 08/28/16 15:19:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/simil_test.cpp
r459 r601 47 47 int nResult = 0; // a temporary result 48 48 49 if (argc < 6)49 if (argc < 7) 50 50 { 51 51 // too few parameters 52 52 printf("Too few parameters!\n"); 53 printf("Command line: [-names] <genotypesFile> <w_dP> <w_dDEG> <w_dNEU> <w_dGEO> \n\n");53 printf("Command line: [-names] <genotypesFile> <w_dP> <w_dDEG> <w_dNEU> <w_dGEO> <isZfixed>\n\n"); 54 54 printf("Parameters:\n"); 55 55 printf(" <genotypesFile> name of a file with genotypes\n"); … … 58 58 printf(" <w_dNEU> weight of the difference in neurons of matched parts\n"); 59 59 printf(" <w_dGEO> weight of the distance of matched parts\n\n"); 60 printf(" <isZFixed> should z cooridante be fixed during the alignment\n"); 60 61 printf("Switches:\n"); 61 62 printf(" -names specifies that the number and names of genotypes are to be printed to output\n"); … … 120 121 } 121 122 123 iCurrParam++; 124 szCurrParam = argv[ iCurrParam ]; 125 nResult = sscanf(szCurrParam, " %d", & M.zFixed); 126 if (nResult != 1) 127 { 128 // <isZFixed> is not a number -- error 129 printf("<isZFixed> should be a number\n"); 130 return -1; 131 } 132 else if (M.zFixed != 0 && M.zFixed !=1) 133 { 134 printf("<isZFixed>=%d. <isZFixed> should be equal to 0 or 1\n", M.zFixed); 135 return -1; 136 } 137 122 138 // read the input file 123 139 // prepare loading of genotypes from a .gen file
Note: See TracChangeset
for help on using the changeset viewer.