MovingMax

Moving maximum of a freely definable range.

Syntax

 MovingMax(expression, # of data points before, # of data points after)
  • expression: signal expression
  • # of data points before - integer number of points in the signal expression before the current date in the aggregation range
  • # of data points after - integer number of points in the signal expression after the current date in the aggregation range

The MovingMax("x" in "unit", "# data points before", "# data points after") function calculates the sum of the elements within the range defined by the user via number of data points. In case of entering zero data points before and after the output is a copy of the input.

Example

 MovingMax("produced water per time increment" in "STB", 1, 1)

As you see in the following table the MovingMax with 1 data point back and 1 data point forward in time produces following output based on the 'original signal' as input:

 

Date/Time

 

Original Signal

 

MovingMax
1 datapoint backwards in time
1 datapoint forward in time

01.02.2007 00:00

8

8

01.03.2007 00:00

0

15

01.04.2007 00:00

15

22

01.05.2007 00:00

22

24

01.06.2007 00:00

24

24

01.07.2007 00:00

13

27

01.08.2007 00:00

27

27

01.09.2007 00:00

6