1066 for (
TFFile FFile(FNmWc); FFile.
Next(FNm); ) {
1068 int TrueNcpId=-1, WhiskId=-1, RewBestWhiskId=-1, RewId=-1, BestWhiskId=-1;
1070 for (
int f = 0; f < Ss.GetFlds(); f++) {
1072 if (strstr(Ss[f],
"FWD:")) {
1073 TStr S(Ss[f]);
const int x = S.SearchStr(
"FWD:");
1074 ParamValV.
Add(S.GetSubStr(x+4, S.SearchCh(
' ', x+1)-1).GetFlt());
1077 if (strstr(Ss[f],
"ORIGINAL MIN")!=NULL) {
1079 int Nodes=0,Edges=0; sscanf(strchr(Ss[f],
'(')+1,
"%d,%d)", &Nodes, &Edges);
1081 printf(
"%s: %d %d\n",
GNmV.
Last().
CStr(), Nodes, Edges);
1084 if (strstr(Ss[f],
"ORIGINAL whisker")!=NULL || strstr(Ss[f],
"TRUE whisker")!=NULL) { WhiskId=f; }
1085 if (strstr(Ss[f],
"ORIGINAL Best whisker")!=NULL || strstr(Ss[f],
"TRUE Best whisker")!=NULL) { BestWhiskId=f; }
1086 if (strstr(Ss[f],
"REWIRED MIN")!=NULL || strstr(Ss[f],
"RAND MIN")!=NULL) { RewId=f; }
1087 if (strstr(Ss[f],
"REWIRED Best whisker")!=NULL || strstr(Ss[f],
"RAND Best whisker")!=NULL) { RewBestWhiskId=f; }
1089 if (TrueNcpId!=-1 || WhiskId!=-1) {
break; }
1091 if (TrueNcpId < 0) { printf(
"%s\n", FNm.
GetFMid().
CStr());
break; }
1098 bool Once=
false, Once2=
false;
1100 if (TrueNcpId < Ss.GetFlds()&& Ss.IsFlt(TrueNcpId)) { Ncp.
Add(
TFltPr(Ss.GetFlt(TrueNcpId-1), Ss.GetFlt(TrueNcpId))); }
1101 if (WhiskId>=0 && WhiskId < Ss.GetFlds() && Ss.IsFlt(WhiskId)) { WhiskNcp.
Add(
TFltPr(Ss.GetFlt(WhiskId-1), Ss.GetFlt(WhiskId))); }
1102 if (RewId >=0 && RewId < Ss.GetFlds()&& Ss.IsFlt(RewId)) { RewNcp.
Add(
TFltPr(Ss.GetFlt(RewId-1), Ss.GetFlt(RewId))); }
1103 if (BestWhiskId>=0 && BestWhiskId < Ss.GetFlds() && ! Once) { Once=
true;
1104 int W2=BestWhiskId-1;
while (W2 > 0 && Ss.GetFlt(W2)!=(double)
int(Ss.GetFlt(W2))) { W2--; }
1106 if (RewBestWhiskId>=0 && RewBestWhiskId < Ss.GetFlds() && ! Once2) { Once2=
true;
1107 int W2=RewBestWhiskId-1;
while (W2 > 0 && Ss.GetFlt(W2)!=(double)
int(Ss.GetFlt(W2))) { W2--; }
1110 printf(
" ncp:%d whisk:%d rew:%d\n",
NcpV.Last().Len(),
WhiskNcpV.Last().Len(),
RewNcpV.Last().Len());
TPair< TInt, TInt > TIntPr
int SearchCh(const char &Ch, const int &BChN=0) const
int SearchChBack(const char &Ch, int BChN=-1) const
TVec< TFltPrV > WhiskNcpV
TSizeTy Len() const
Returns the number of elements in the vector.
TStr GetSubStr(const int &BChN, const int &EChN) const
const TVal & Last() const
Returns a reference to the last element of the vector.
TPair< TFlt, TFlt > TFltPr
static TStr Fmt(const char *FmtStr,...)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
Vector is a sequence TVal objects representing an array that can change in size.