FreeHEP API
Version 3.0

hep.aida
Interface IFunctionFactory


public interface IFunctionFactory

Function factory.

Author:
The AIDA team (http://aida.freehep.org/)
Stereotype:
abstractfactory

Method Summary
 IFunctionCatalog catalog()
          get access to the function catalog
 IFunction cloneFunction(String name, IFunction f)
           
 IFunction createFunctionByName(String name, String model)
          Create function from a name registered in the catalog.
 IFunction createFunctionFromScript(String name, int dim, String valexpr, String parameters, String description)
          Create function from script.
 IFunction createFunctionFromScript(String name, int dim, String valexpr, String parameters, String description, String gradexpr)
          Create function from script.
 

Method Detail

createFunctionByName

public IFunction createFunctionByName(String name,
                                      String model)
Create function from a name registered in the catalog. This is the easiest way to create simple model functions for fitting. Every AIDA compliant implementation should predefine "G", "E", "Pn" (n is an integer, e.e "P0","P5"). Simple operations are permitted, e.g. "G+P2".


createFunctionFromScript

public IFunction createFunctionFromScript(String name,
                                          int dim,
                                          String valexpr,
                                          String parameters,
                                          String description)
Create function from script. Script conventions: example: createFunctionFromScript("f1", 2, "a*x[0]*x[0] + b*x[1]", "a,b", "this is my function", "2*a*x[0],b")


createFunctionFromScript

public IFunction createFunctionFromScript(String name,
                                          int dim,
                                          String valexpr,
                                          String parameters,
                                          String description,
                                          String gradexpr)
Create function from script. Script conventions: example: createFunctionFromScript("f1", 2, "a*x[0]*x[0] + b*x[1]", "a,b", "this is my function", "2*a*x[0],b")


cloneFunction

public IFunction cloneFunction(String name,
                               IFunction f)

catalog

public IFunctionCatalog catalog()
get access to the function catalog


FreeHEP API
Version 3.0

Copyright © 2000-2002 AIDA Team, All Rights Reserved.