Timcumsum 646 Bytes
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
@BeginModule
Uwe Schulzweida's avatar
Uwe Schulzweida committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@NewPage
@Name      = Timcumsum
@Title     = Cumulative sum over all timesteps
@Section   = Statistical values
@Class     = Statistic
@Arguments = ifile ofile
@Operators = timcumsum

@BeginDescription
The timcumsum operator calculates the cumulative sum over all timesteps.
Missing values are treated as numeric zero when summing.
@EndDescription
@EndModule


@BeginOperator_timcumsum
@Title     = Cumulative sum over all timesteps

@BeginDescription
@IfMan
Uwe Schulzweida's avatar
Uwe Schulzweida committed
22

Uwe Schulzweida's avatar
Uwe Schulzweida committed
23
24
25
o(t,x) = sum{i(t',x), 0<t'<=t}
@EndifMan
@IfDoc
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
 \ \newline
Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
28
29
30
31
32
@BeginMath
o(t,x) = \mbox{\textbf{sum}}\{i(t',x), 0 < t' \leq t\}
@EndMath
@EndifDoc
@EndDescription
@EndOperator