Differentiated Variables
For more information, see the online learning platform
Differentiated variables creates derivative of variables. The derivatives are computed for each input variable.
To create a differentiated set of variables:
- Click Transform > Differentiated variables in the menu.
Enter a name for the new variable set.
Variable set
Note that Differentiated Variable creates a Variable set, containing several new variables. Therefore, to check your Differentiated variables you can go to the third icon on the left bar.
- Enter prefix, default: DIFF_
- Enter Step duration. For more information, see Step duration.
- Select Input variables or variable set.
- Select Differential method. For more information, see Newton, Symmetric and High order.
The derivative options are:
- Newton: difference quotient (order 1)
- Symmetric: difference quotient (order 2)
High order: five-point stencil
- Select the Direction, Left or Right. See below that it is the formula used to derive the variable with the Newton method.
- Click Save.
Differentiated Methods
Formula used to derive the variable:
- Newton: f'(x) = [f(x + 1 )-f(x)]/Step or f'(x) = [f(x)-f(x - 1)]/Step
- Symmetric: f'(x) = [f(x + 1) - f(x - 1)] / [2 * Step]
- High order: f'(x) = [-f(x + 2) + 8f(x + 1) - 8f(x - 1) + f(x - 2)] / [12 * Step]
With:
- x: the index of the row
- f(x): the value of the variable for row x
- f'(x): the value of the derivative for row x
- Step: Value defined by the field Step duration. It is the duration between two rows of the dataset. If Step duration is missing, the default value is 1.
Direction
Formula used to derive the variable with the Newton method:
- Left: f'(x) = [f(x)-f(x - 1)]/Step
- Right: [f(x + 1 )-f(x)]/Step
With :
- x: the index of the row
- f(x): the value of the variable for row x
- f'(x): the value of the derivative for row x
- Step: Value defined by the field Step duration. It is the duration between two rows of the dataset. If Step duration is missing, the default value is 1.