CDL - STATS: Difference between revisions

m
no edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
== Statistical functions ==
The STATS keyword requires a ''Plotvariable'' on which to apply the statistics and a method to apply and a statistical method to use.
STATS [ALL||DAILY|RECENT|EXTRA] <[[Charts_Definition_Language_(CDL)#Plotvariables|Plotvariable]]> <Statistical method>
 
The following statistical methods are available in the ChartsCompiler:
#SMA - Best explained in the external Wiki: [https://en.wikipedia.org/wiki/Moving_average#Simple_moving_average Simple Moving Average]. The period for the Moving Average is given by the user as value to the parameter : ''PeriodMovingAverage''= <value> (section [graphs])
 
 
-- To be Expanded --
The following example shows the Rain for all days (all observations).
In addition the yearly cumulative curve is shown and the moving average (SMA - Simple Moving Average). See image on the right.
The period for the Moving Average is given by the user as value to the parameter : ''PeriodMovingAverage''= <value> (section [graphs]
 
CHART DailyRain TITLE Rain with statistics
PLOT ALL RainFallDayRain colour CornflowerBlue as column
PLOT ALL RainFallSumDayRain EVAL [ SUM( RainFallDayRain ) ] COLOUR crimson AXIS Free
STATS RainFallALL DayRain SMA colour green
EndChart OUTPUT Statistics.txt
 
 
[[Category:CumulusUtils]]