|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.function.SumOfFunctions
public class SumOfFunctions
| Constructor Summary | |
|---|---|
SumOfFunctions(String name,
ArrayList functions)
|
|
| Method Summary | |
|---|---|
void |
addFunction(IFunction func)
|
IAnnotation |
annotation()
|
String |
codeletString()
String describing the metatype and implementation of the function. |
boolean |
containsFunction(IFunction function)
|
int |
dimension()
Dimensionality of the domain space. |
IFunction |
function(int index)
|
double[] |
gradient(double[] values)
Gradient of the function. |
int |
indexOfFunction(IFunction function)
|
int |
indexOfParameter(String str)
Return -1 if parameter not found (name undefined). |
boolean |
isEqual(IFunction iFunction)
Compare if functions are the same. |
int |
nFunctions()
|
String |
normalizationParameter()
Returns the name of the normalization parameter if the function has one. |
int |
numberOfParameters()
Number of parameters. |
double |
parameter(String str)
|
String[] |
parameterNames()
Names of paramaters. |
double[] |
parameters()
Retrieve current vector of parameters. |
boolean |
providesGradient()
Determine whether function is able to compute gradient. |
void |
removeAllFunctions()
|
void |
removeFunction(IFunction func)
|
void |
setParameter(String str,
double param)
Set parameter's value by name. |
void |
setParameters(double[] values)
Set new vector of parameters. |
void |
setTitle(String str)
Set the histogram title. |
String |
title()
Get the Function's title. |
double |
value(double[] values)
Scalar value of the function. |
String |
variableName(int param)
Get the symbolic name of i-th variable. |
String[] |
variableNames()
Get all the names in a vector. |
| 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 |
|---|
public SumOfFunctions(String name,
ArrayList functions)
| Method Detail |
|---|
public IAnnotation annotation()
annotation in interface IFunctionpublic String normalizationParameter()
IFunction
normalizationParameter in interface IFunctionpublic String codeletString()
IFunction
codeletString in interface IFunctionpublic int dimension()
IFunction
dimension in interface IFunctionpublic double[] gradient(double[] values)
IFunction
gradient in interface IFunctionpublic int indexOfParameter(String str)
IFunction
indexOfParameter in interface IFunctionpublic boolean isEqual(IFunction iFunction)
IFunction
isEqual in interface IFunctionpublic int numberOfParameters()
IFunction
numberOfParameters in interface IFunctionpublic double parameter(String str)
parameter in interface IFunctionpublic String[] parameterNames()
IFunction
parameterNames in interface IFunctionpublic double[] parameters()
IFunction
parameters in interface IFunctionpublic boolean providesGradient()
IFunction
providesGradient in interface IFunction
public void setParameter(String str,
double param)
throws IllegalArgumentException
IFunction
setParameter in interface IFunctionstr - The name of the parameter.param - The new value of the parameter.
IllegalArgumentException - If name does not correspond to a parameter.
public void setParameters(double[] values)
throws IllegalArgumentException
IFunction
setParameters in interface IFunctionIllegalArgumentException
public void setTitle(String str)
throws IllegalArgumentException
IFunction
setTitle in interface IFunctionstr - The title.
IllegalArgumentExceptionpublic String title()
IFunction
title in interface IFunctionpublic double value(double[] values)
IFunction
value in interface IFunctionpublic String variableName(int param)
IFunction
variableName in interface IFunctionpublic String[] variableNames()
IFunction
variableNames in interface IFunctionpublic void addFunction(IFunction func)
public void removeFunction(IFunction func)
public void removeAllFunctions()
public IFunction function(int index)
public int indexOfFunction(IFunction function)
public int nFunctions()
public boolean containsFunction(IFunction function)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||