Documentation

Filters
in package

Table of Contents

Methods

movingAverage()  : ValueStream
Takes a moving average of the Valuestream

Methods

movingAverage()

Takes a moving average of the Valuestream

public static movingAverage(ValueStream $vs[, array<string|int, mixed> $config = [] ]) : ValueStream

This function will return a new valuestream with completely new data. The input valuestream is resampled to get evenly spaced data, and then a basic moving average is calculated. The resampled rate is based on an input or inferred data density. The moving average window is also a custom input that is inferred by default Config options are:

  • sample_rate DateInterval
  • window DateInterval
Parameters
$vs : ValueStream
$config : array<string|int, mixed> = []
Return values
ValueStream

        
On this page

Search results