📄 external.h
字号:
/*----------------------------------------------------------------------------*/
/* external.h - external global declarations from sga.h. */
/*----------------------------------------------------------------------------*/
//#include "structs.h"
#define LINELENGTH 80 /* width of printout */
#define BITS_PER_BYTE 8 /* number of bits per byte on this machine */
#define UINTSIZE (BITS_PER_BYTE*sizeof(unsigned)) /* # of bits in unsigned */
#include <stdio.h>
#include "classfile.h"
#include "GMM.h"
/* file pointers */
extern FILE *outfp, *infp;
/* Global structures and variables */
extern individual *oldpop; /* last generation of individuals */
extern individual *newpop; /* next generation of individuals */
//extern bestever bestfit; /* fittest individual so far */
extern individual bestfit; /* fittest individual so far */
extern individual baseline;
extern double sumfitness; /* summed fitness for entire population */
extern double max; /* maximum fitness of population */
extern double avg; /* average fitness of population */
extern double min; /* minumum fitness of population */
extern float pcross; /* probability of crossover */
extern float pmutation; /* probability of mutation */
extern int numfiles; /* number of open files */
extern int popsize; /* population size */
extern int lchrom; /* length of the chromosome per individual */
extern int chromsize; /* number of "unsigned(s)" needed to store lchrom string */
extern int gen; /* current generation number */
extern int maxgen; /* maximum generation number */
extern int run; /* current run number */
extern int maxruns; /* maximum number of runs to make */
extern int printstrings; /* flag to print chromosome strings (default on) */
extern int nmutation; /* number of mutations */
extern int ncross; /* number of crossovers */
/* Application-dependent external declarations go after here... */
//--------------------------------------------------------------
// Custom variables definition
extern int iCorpora; // population of the corpora : 250
extern CGMM *Target,*World; // instance of the GMM
extern float **Cparam; // buffer for claiment's and impostor's parameters
extern float **Iparam; // [frame_index][vector], frames of all files are jointed together
extern int iCFiles; // total files of the claiment
extern int iIFiles; // total files of the impostor
extern int nCSamples; // frames numbers in each file of claiment's parameters
extern int nISamples; // frames numbers in each file of impostor's parameters
extern int nValues; // all valid dimension of the vector
extern float *CScore; // for objfunc() use
extern float *IScore;
extern float *Ffa; // for objfunc() use
extern float *Ffr;
extern char target[10];
extern char rootdir[100];
extern double **CTProbBuffer ; // claiment param, target model
extern double **CWProbBuffer ; // claiment param, world model
extern double **ITProbBuffer ; // impostor param, target model
extern double **IWProbBuffer ; // impostor param, world model
extern bool bflag;
extern int nBitPerUnit;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -