hep.aida.ref.function
Class UserFunction

java.lang.Object
  extended by hep.aida.ref.event.AIDAObservable
      extended by hep.aida.ref.ManagedObject
          extended by hep.aida.ref.function.AbstractIFunction
              extended by hep.aida.ref.function.UserFunction
All Implemented Interfaces:
hep.aida.dev.IDevManagedObject, hep.aida.IFunction, hep.aida.IManagedObject, hep.aida.IModelFunction, Connectable, FunctionDispatcher, java.lang.Cloneable

public class UserFunction
extends AbstractIFunction


Constructor Summary
UserFunction()
           
UserFunction(java.lang.String title)
           
UserFunction(java.lang.String[] variableNames, java.lang.String[] parameterNames)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 double value(double[] v)
          Provide value for your function here.
 
Methods inherited from class hep.aida.ref.function.AbstractIFunction
addFunctionListener, annotation, clone, codeletString, dimension, excludeNormalizationAll, gradient, includeNormalizationAll, indexOfParameter, isEqual, isNormalized, normalizationParameter, normalizationRange, normalize, numberOfParameters, parameter, parameterGradient, parameterNames, parameters, providesGradient, providesNormalization, providesParameterGradient, removeFunctionListener, setCodeletString, setParameter, setParameters, setTitle, title, variableName, variableNames
 
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName, type, typeForClass
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected, setConnected
 

Constructor Detail

UserFunction

public UserFunction()

UserFunction

public UserFunction(java.lang.String title)

UserFunction

public UserFunction(java.lang.String[] variableNames,
                    java.lang.String[] parameterNames)
Method Detail

value

public double value(double[] v)
Description copied from class: AbstractIFunction
Provide value for your function here. Something like: return p[0]+p[1]*v[0]+p[2]*v[0]*v[0];

Specified by:
value in interface hep.aida.IFunction
Specified by:
value in class AbstractIFunction

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


jHepWork 2.1 (C) S.Chekanov