By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ttime | temperature | flag |
---|---|---|
0 | 2 | 0 |
1 | 1 | 0 |
2 | 0 | 0 |
3 | -1 | 1 |
4 | -2 | 1 |
5 | -4 | 1 |
6 | -4 | 1 |
7 | -5 | 1 |
8 | -3 | 1 |
9 | -2 | 1 |
10 | -1 | 1 |
11 | -1 | 1 |
12 | 1 | 0 |
13 | 1 | 0 |
14 | -1 | 0 |
15 | -2 | 0 |
16 | -1 | 0 |
17 | 0 | 0 |
18 | 1 | 0 |