• Main Page
  • Modules
  • Classes
  • Files
  • File List

D:/Projekt/ECF_trunk/examples/FunctionMin/benchmarkshelper.h

00001 
00002 #ifdef __cplusplus
00003 double round(double a) throw();
00004 double fmin(double a, double b) throw();
00005 double fmax(double a, double b) throw();
00006 #else
00007 double round(double a);
00008 double fmin(double a, double b);
00009 double fmax(double a, double b);
00010 #endif
00011 void unif(double* r, int N, int inseed);
00012 void gauss(double * g, int N, int seed);
00013 void computeXopt(int seed, int _DIM);
00014 void monotoneTFosc(double* f);
00015 void freeStarStar(double** M, int m);
00016 double** reshape(double** B, double* vector, int m, int n);
00017 void computeRotation(double ** B, int seed, int _DIM);
00018 double myrand(void);
00019 double randn(void);
00020 double FGauss(double Ftrue, double beta);
00021 double FUniform(double Ftrue, double alpha, double beta);
00022 double FCauchy(double Ftrue, double alpha, double p);
00023 int compare_doubles (const void *a, const void *b);
00024 void initbenchmarkshelper(void);
00025 void finibenchmarkshelper(void);
00026 double computeFopt(int _funcId, int _trialId);
00027 void setNoiseSeed(unsigned int _seed, unsigned int _seedn);
00028 
00029 /* error handling routines - same arguments as printf, i.e. format first, then list of things to print */
00030 /* this one exits after printing - severe error, not recoverable */
00031 void ERROR(const char *fmt, ...);
00032 /* same, but returns to the caller, mild error */
00033 void WARNING(const char *fmt, ...);
00034 
00035 /* Checks if sDir exists, 
00036    creates it if not
00037    checks if is writable thereafter
00038    Fatal ERROR if anything fails
00039 */
00040 void dirOK(char *sDir);
00041 
00042 /* create complete pathName from filename and dirname 
00043    is SYSTEM dependent (should be some #ifdef WINDOWS etc ...)
00044    fullFileName should already be allocated, at least 1024 bytes long
00045 */
00046 void createFullFileName(char *fullFileName, char *dirName, char *fileName);
00047 
00048 /* checks the existence of a file */
00049 int existFile(char * fileName);
00050 
00051 /* opens a file after checking it is there */
00052 FILE * bbobOpenFile(char * fileName);

Generated on Tue Nov 4 2014 13:04:31 for ECF by  doxygen 1.7.1