test_basicPortsMath.h 371 Bytes
Newer Older
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
#ifndef TEST_BASICPORTSMATH
#define TEST_BASICPORTSMATH
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "armadillo.h"
using namespace arma;
class test_basicPortsMath{
public:
double counter;
double result;
void init()
{
}
void execute()
{
if((counter < 0)){
result = 0;
}
else if((counter < 100)){
result = counter;
}
else {
result = 100;
}
}

};
#endif