Skip to content

Series.linearTrend (Series)

Create time series with linear trend

Syntax

x = Series.linearTrend(range)
x = Series.linearTrend(range, step)
x = Series.linearTrend(range, step, startValue)

Input Arguments

range [ Dater ]

Date range on which the trend time series will be created.

step=1 [ numeric ]

Difference between two consecutive dates in the trend; if omitted, the increment of the trend will be 1.

startValue=0 [ numeric ]

Starting value for the trend; if omitted, the trend will startValue at zero.

Output Arguments

x [ Series ]

Output time series with a linear trend.

Description

Example