sample.hpp

来自「这是个人脸识别程序」· HPP 代码 · 共 22 行

HPP
22
字号
// $masm\sample.hpp 1.5 milbo$ functions for dealing with samples// Warning: this is raw research code -- expect it to be quite messy.// milbo petaluma mar 2006const static int CONF_nSamFileVersion = 0;	// SAM file version (which is part of the magic nbr at start of file)typedef struct tSampleSpec	{	char sFile[SLEN];		// sample spec file name e.g. m2.sam, sFile[0]==0 means uninitialized	char sFileTypes[FLEN];	// file types, only "B" or "m" or "a" or "*" for all are allowed	int  iSet;				// row index in iSamples array (0 is test set, 1 is 1st cross validation set, etc.)	int  i;					// which set of n-fold cross validation to use (if +ve) or exclude (if -ve)	int  n;					// n-fold cross validation	}tSampleSpec;void ParseSampleSpec(tSampleSpec &SampleSpec, 			// out						const char sSampleSpec[]);		// invoid GetShapesSpecifiedBySampleSpec(ShapeVec *pShapes, StringVec &TagStrings,			// io									 const tSampleSpec &SampleSpec, bool fVerbose);		// in

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?