Skip to content
Reference > Prepare Methods

movingAvg(value,sampleSize,options)

Definition

Number movingAvg(Number value, Integer sampleSize, String options)

Description

moving average of nearest sampleSize records

Parameter Definition

Name Type Description
value Number data to calculate avg from
sampleSize Integer number of records to consider
options String Either MID,BEFORE,AFTER (null defaults to MID)