You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

UserSimple

Input

The input of the user defined function can be a variable which references to a time series set or a variable which references to a coefficient set. In the example below X1 is a reference to a time series set and

b and a are references to a coefficient set.

Expression

For instance "X1 + X2 * 3". The following operators can be used in the expression: +, -, /, *, ^, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh, log, ln, exp, sqrt, abs, pow.
In the expression reference input variables or coefficients using their id, e.g. "X1 + a" where "X1" is the variableId of a variable defined elsewhere and "a" is the id of a coefficient defined in a coefficientSet. A variableId or coefficientId should not start with a numerical character and should not contain operators.

Coefficient set

Should contain the coefficients that are used in the free format expression. Defined the ids and values of the coefficients here, then reference to the ids of these coefficients in the expression. Make sure that for all the coefficient ids in the free format expression the values are defined here.

Output
  1. output: result of the evaluated expression.
Description

Function specified by a custom free format expression and coefficients. Any number of input variables and coefficients can be used in the free format expression. The expression may contain general mathematical operators. A function parser is used to evaluate the expression. For each time step in the output time series the expression is evaluated and the result is written to the output time series.

Configuration example


  • No labels