Sandbox

This is a test to reproduce bug #345 and to validate its fix:

When defining a median e.g. like 

    Et_CO2 = median(Raw_etCO2[-1min, 0min])

the median is not computed correctly.
See attached service Journal (Service-median01.zip) 
for etCO2 and MAC

When defining a median like

    Et_CO2 = median(Raw_etCO2[now-1min, now])

everything is fine.

In this bug, the time database for newly set (but unchanged) input values are updated, so containing multiple entries with the same value. But the rules using this history haven't been updated, because the symptom itself has not changed, only its history.

Form #1 - raw [num] - med [num] <abstract> - old [num] <abstract> - count [num] <abstract>

med
= median(
raw
[-1min, 0min])
old
=
raw
[-1min]
count
= count(
raw
[])

Case Start: ---
Show of 9 rows
Rows to 9 
Time
Checks
raw
0s
med
= 1

count
= 1
1.0
10s
med
= 1

count
= 2
1.0
55s
med
= 1

count
= 3
1.0
1min 5s
med
= 1

old
= 1
2.0
1min 25s
old
= 1
2.0
1min 40s
med
= 2

old
= 1
2.0
2min
med
= 2

old
= 1
2.0
2min 30s
med
= 2

old
= 2
2.0
3min
med
= 2

old
= 2
2.0

No knowledge base found for this interview.