INIT
Applies to PredictiveInsight only.
Syntax
INIT(val1 [, val2]…) INIT(column)
Parameters
val1
The numerical value of the recursive function at time (t-1).
val2
The numerical value of the recursive function at time (t-n), where n is the parameter number. This parameter can be repeated multiple times to provide initial values for an indefinite number of previous time steps.
column
A column of numerical values. The first cell will be assigned to the time step (t-1), the second cell value to (t-2), and so on.
Description
INIT specifies the initial values for a recursive function definition. The first provided value is assigned to the time step (t-1), the second to (t-2), and so on. If a time step is not initialized using INIT, its value is assumed to be zero. For example, given the statement
V1 = INIT(1, 2, 3)
the value for time step (t-4) is zero (as are all other time steps further back in time). An INIT statement is required before defining any recursive function.
*
The INIT macro function does not return any values. If used alone in a function definition, it returns a blank column.
Examples
Creates a new column named TEMP containing the values 1-10.
Creates a new column named TEMP containing the values 2, 4, 8, 16, 32, and so on. The first 100 cells of TEMP will contain values.
Creates a column named TEMP containing the sequence of values 5, 4, 3, 2, 1 repeated 100 times.
Creates a new column named TEMP containing values for the cursive function:
Related Functions