FreeHEP API
Version current

hep.aida.ref.function
Class SumOfFunctions

java.lang.Object
  extended byhep.aida.ref.event.AIDAObservable
      extended byhep.aida.ref.ManagedObject
          extended byhep.aida.ref.function.SumOfFunctions
All Implemented Interfaces:
Connectable, hep.aida.dev.IDevManagedObject, hep.aida.IFunction, hep.aida.IManagedObject

public class SumOfFunctions
extends ManagedObject
implements hep.aida.IFunction

Author:
The FreeHEP team @ SLAC
Source Code:
SumOfFunctions.java

Field Summary
 
Fields inherited from class hep.aida.ref.ManagedObject
fillable
 
Fields inherited from class hep.aida.ref.event.AIDAObservable
connectionDidChange, isConnected, isValid
 
Constructor Summary
SumOfFunctions(String name, ArrayList functions)
           
 
Method Summary
 void addFunction(hep.aida.IFunction func)
           
 hep.aida.IAnnotation annotation()
           
 String codeletString()
           
 boolean containsFunction(hep.aida.IFunction function)
           
 int dimension()
           
 hep.aida.IFunction function(int index)
           
 double[] gradient(double[] values)
           
 int indexOfFunction(hep.aida.IFunction function)
           
 int indexOfParameter(String str)
           
 boolean isEqual(hep.aida.IFunction iFunction)
           
 int nFunctions()
           
 String normalizationParameter()
           
 int numberOfParameters()
           
 double parameter(String str)
           
 String[] parameterNames()
           
 double[] parameters()
           
 boolean providesGradient()
           
 void removeAllFunctions()
           
 void removeFunction(hep.aida.IFunction func)
           
 void setParameter(String str, double param)
           
 void setParameters(double[] values)
           
 void setTitle(String str)
           
 String title()
           
 double value(double[] values)
           
 String variableName(int param)
           
 String[] variableNames()
           
 
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName, type
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, createEvent, fireStateChanged, fireStateChanged, fireStateChanged, isConnected, removeAllListeners, removeListener, setConnected, setIsValidAfterNotify, setValid, setValidForAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected, setConnected
 

Constructor Detail

SumOfFunctions

public SumOfFunctions(String name,
                      ArrayList functions)
Method Detail

annotation

public hep.aida.IAnnotation annotation()
Specified by:
annotation in interface hep.aida.IFunction

normalizationParameter

public String normalizationParameter()
Specified by:
normalizationParameter in interface hep.aida.IFunction

codeletString

public String codeletString()
Specified by:
codeletString in interface hep.aida.IFunction

dimension

public int dimension()
Specified by:
dimension in interface hep.aida.IFunction

gradient

public double[] gradient(double[] values)
Specified by:
gradient in interface hep.aida.IFunction

indexOfParameter

public int indexOfParameter(String str)
Specified by:
indexOfParameter in interface hep.aida.IFunction

isEqual

public boolean isEqual(hep.aida.IFunction iFunction)
Specified by:
isEqual in interface hep.aida.IFunction

numberOfParameters

public int numberOfParameters()
Specified by:
numberOfParameters in interface hep.aida.IFunction

parameter

public double parameter(String str)
Specified by:
parameter in interface hep.aida.IFunction

parameterNames

public String[] parameterNames()
Specified by:
parameterNames in interface hep.aida.IFunction

parameters

public double[] parameters()
Specified by:
parameters in interface hep.aida.IFunction

providesGradient

public boolean providesGradient()
Specified by:
providesGradient in interface hep.aida.IFunction

setParameter

public void setParameter(String str,
                         double param)
                  throws IllegalArgumentException
Specified by:
setParameter in interface hep.aida.IFunction
Throws:
IllegalArgumentException

setParameters

public void setParameters(double[] values)
                   throws IllegalArgumentException
Specified by:
setParameters in interface hep.aida.IFunction
Throws:
IllegalArgumentException

setTitle

public void setTitle(String str)
              throws IllegalArgumentException
Specified by:
setTitle in interface hep.aida.IFunction
Throws:
IllegalArgumentException

title

public String title()
Specified by:
title in interface hep.aida.IFunction

value

public double value(double[] values)
Specified by:
value in interface hep.aida.IFunction

variableName

public String variableName(int param)
Specified by:
variableName in interface hep.aida.IFunction

variableNames

public String[] variableNames()
Specified by:
variableNames in interface hep.aida.IFunction

addFunction

public void addFunction(hep.aida.IFunction func)

removeFunction

public void removeFunction(hep.aida.IFunction func)

removeAllFunctions

public void removeAllFunctions()

function

public hep.aida.IFunction function(int index)

indexOfFunction

public int indexOfFunction(hep.aida.IFunction function)

nFunctions

public int nFunctions()

containsFunction

public boolean containsFunction(hep.aida.IFunction function)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.