Beispiel #1
0
void TStrFeatureSpace::Save(TSOut& Out) const {
	TStrFSSize Len = Space.Len();
	Out.Save(Len);
	for (TStrFSSize i = 0; i < Space.Len(); i++) {
		const char *Ftr = ISpace.KeyFromOfs(Space[i]);
		TInt StrLen = strlen(Ftr);
		StrLen.Save(Out);
		Out.PutBf(Ftr, StrLen);
	}
}
Beispiel #2
0
void TEma::Save(TSOut& SOut) const {
	// parameters
	Decay.Save(SOut);
	LastVal.Save(SOut);
	Ema.Save(SOut);
	TmMSecs.Save(SOut);
	InitP.Save(SOut);
	InitMinMSecs.Save(SOut);
	InitValV.Save(SOut);
	InitMSecsV.Save(SOut);
	// TODO: Use macro for saving enum (SaveEnum, LoadEnum)
	// TODO: change TmInterval from double to TFlt
	// PROBLEM: After changing TmInterval from double to TFlt Qminer crashes hard!
	TInt TypeI = Type; // TEmaType 
	TypeI.Save(SOut);
	TFlt TmIntervalFlt = TmInterval; // double
	TmIntervalFlt.Save(SOut);;
}