-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestcollection.h
98 lines (85 loc) · 2.57 KB
/
testcollection.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef TESTCOLLECTION_H
#define TESTCOLLECTION_H
#include <vector>
#include <HIntLib/qmcintegrator.h>
#include <HIntLib/integrand.h>
#include <HIntLib/pointset.h>
#include <HIntLib/defaults.h>
#include <interceptableintegrand.h>
class F00_simpleSum : public Integrand
{
public:
F00_simpleSum(int s) : Integrand(s) {}
virtual real operator() (const real *);
};
class FI00_simpleSum : public InterceptableIntegrand
{
public:
FI00_simpleSum(int s) : InterceptableIntegrand(s, (double) s / 2)
{ name = "Simple sum"; }
virtual InterceptedSet intercept(const real *);
};
class FI01_MorCaf1 : public InterceptableIntegrand
{
public:
FI01_MorCaf1(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Morokoff-Caflisch function #1";}
virtual InterceptedSet intercept(const real *);
};
class FI02_NormalDensity : public InterceptableIntegrand
{
public:
FI02_NormalDensity(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Normal density function";}
virtual InterceptedSet intercept(const real *);
};
class FI03_PieceLin : public InterceptableIntegrand
{
public:
FI03_PieceLin(int s) : InterceptableIntegrand(s, s)
{ name = "Piecewise linear function";}
virtual InterceptedSet intercept(const real *);
};
class FI04_PieceLinEx : public InterceptableIntegrand
{
public:
FI04_PieceLinEx(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Piecewise linear extreme function";}
virtual InterceptedSet intercept(const real *);
};
class FI05_CubicPolynomial : public InterceptableIntegrand
{
public:
FI05_CubicPolynomial(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Cubic Polynomial";}
virtual InterceptedSet intercept(const real *);
};
class FI06_Oscillatory : public InterceptableIntegrand
{
public:
FI06_Oscillatory(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Oscillatory function";}
virtual InterceptedSet intercept(const real *);
};
class FI07_Singular : public InterceptableIntegrand
{
public:
FI07_Singular(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Singular function";}
virtual InterceptedSet intercept(const real *);
};
class FI08_InfVariation : public InterceptableIntegrand
{
public:
FI08_InfVariation(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Function with infinite variation";}
virtual InterceptedSet intercept(const real *);
};
class FI09_SingularFinVar : public InterceptableIntegrand
{
public:
FI09_SingularFinVar(int s) : InterceptableIntegrand(s, 1.0)
{ name = "Weakly singular function";}
virtual InterceptedSet intercept(const real *);
};
#endif // TESTCOLLECTION_H