The APS Environment

Static UDFs
 
By selecting the Static UDFs Tab and checking the Use UDFs box, the Static UDFs framework lights up and you can now add your own user defined functions.

To add a Static UDF (UDF) to your modeling kit, just click the Add button on the Static UDFs frame and the UDF editor appears with the function header already present.

Then you just have to write the body of the function in the code editor. The code must be in JavaScript and can be rapidly tested for compiling errors.

You will notice that the Arity box is disabled and set to zero as all the UDFs are treated exactly as terminals.

In the Definition box, you can write a brief description of the function for your future reference. The text you write here will appear in the Definition column.

The use of UDFs is a very powerful tool as they allow you to explore the knowledge about relatively simple relationships that exist between certain variables in your data. For instance, suppose you wanted to explore the fact that the sum of four of your variables is relevant, say, d0 + d1 + d2 + d3. So you design a UDF to express this relationship, for instance, UDF1 = d0 + d1 + d2 + d3, and use this new UDF as an extra terminal in your modeling kit. The advantage of well designed UDFs is that they make the discovery of more complex models composed of several simpler models much easier.

Home | Contents | Previous | Next