This shows you the differences between two versions of the page.

Link to this comparison view

average [2016/06/14 18:41] (current)
a.leofreddi created
Line 1: Line 1:
 +=== Average[$value,​ $interval] ===
 +The average function will resample the given **$value** function over the given **$interval**,​ resulting in a numeric outcome. ​
 +Dealing with a numeric, non-integral,​ argument, as the name suggests, will produced an averaged result.
 +A common use is to provide the interval using a periodicity,​ like [[Every|Every function]]:
 +<code lisp>
 +// Define V as the day number over the year (1, 2 and so on until 365)
 +V = Extract[Start,​ "​DAY_OF_YEAR",​ "​CET"​];​
 +// Now average V every month
 +R = Average[V, Every[1, "​MONTH_OF_YEAR",​ "​CET"​]]
  • average.txt
  • Last modified: 2016/06/14 18:41
  • by a.leofreddi