Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Functions within JAIDA AIDA are created via an IFunctionFactory. They can be created by either accessing a pool of pre-defined functions or by scripting them on the fly.

Pre-defined Functions

Pre-defined functions are those functions that are registered with the function factory's catalog and that can be created by specifying their name; in the following example we create a gaussian:

Code Block
borderStylesolid
// The AIDA Factories
IAnalysisFactory af = IAnalysisFactory.create();
ITree = af.createTreeFactory().create();
IFunctionFactory ff = af.createFunctionFactory(tree);

// Create a gaussian
IFunction gauss = ff.createFunctionByName("gauss","g");

In the example above a gaussian is created accessing the pool of functions that we provide in our implementation. For a full list of pre-defined functionsthe functions provided by the JAIDA implementation, their definition and the list of the parameter's names please refer to the JAIDA Release Notes.