-
Notifications
You must be signed in to change notification settings - Fork 2
/
TestFunctions.h
48 lines (46 loc) · 1.61 KB
/
TestFunctions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include "TVector.h"
#include "TDefine.h"
class TestFunctions
{
public:
float(*testfunction_)(float* in);
float(*testfunction)(TVector in);
TestFunctions(void);
~TestFunctions(void);
static float A(float c);
static float Schwefel(TVector input);
static float DeJong(TVector input);
static float Schwefel2(TVector input);
static float Schwefel_(float*input);
void SetTestfunction(int index);
static float Rosenbrock(TVector input);
static float DeJong3(TVector input);
static float DeJong4(TVector input);
static float Rastrigin(TVector input);
static float Griewangk(TVector input);
static float StretchedV(TVector input);
static float Ackley(TVector input);
static float EggHolder(TVector input);
static float Rana(TVector input);
static float Pathological(TVector input);
static float Michalewicz(TVector input);
static float Masters_InvertedCosine(TVector input);
//float array 20180411
static float DeJong(float* input);
static float Rosenbrock(float* input);
static float DeJong3(float* input);
static float DeJong4(float* input);
static float Rastrigin(float* input);
static float Griewangk(float* input);
static float StretchedV(float* input);
static float Ackley(float* input);
static float EggHolder(float* input);
static float Rana(float* input);
static float Pathological(float* input);
static float Michalewicz(float* input);
static float Masters_InvertedCosine(float* input);
void SetTestfunction2(int index);
char* GetTestFunctionName();
static TestFunctions& getInstance() { static TestFunctions instance; return instance; }
};