forked from alexdevonport/pfaces-pirk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbounds.cl
55 lines (50 loc) · 891 Bytes
/
bounds.cl
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
float initial_state_lower_bound(unsigned int i) {
unsigned int k = i % 12;
if(k < 3 ) {
return -0.4f;
}
else if(k < 6) {
return -0.1f;
}
else if(k < 9) {
return -0.4f;
}
else {
return 0.0f;
}
}
float initial_state_upper_bound(unsigned int i){
unsigned int k = i % 12;
if(k < 3 ) {
return 0.4f;
}
else if(k < 6) {
return 0.1f;
}
else if(k < 9) {
return 0.4f;
}
else {
return 0.0f;
}
}
float input_lower_bound(unsigned int i)
{
unsigned int k = i % 12;
if(k > 8) {
return -0.5f;
}
else {
return 0.0f;
}
}
float input_upper_bound(unsigned int i)
{
unsigned int k = i % 12;
if(k > 8) {
return 0.5f;
}
else {
return 0.0f;
}
}