|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.aida.ref.function.AbstractIFunction
AbstractIFunction is implementation of the IFunction. User has to implement "value" method.
| Field Summary | |
protected String |
codeletString
|
protected double[] |
gradient
|
protected double[] |
p
|
protected String[] |
parameterNames
|
protected String[] |
variableNames
|
| Constructor Summary | |
AbstractIFunction(String title,
int dimension,
int numberOfParameters)
Creates a new instance of AbstractIFunction with default variable names (x0, x1, ...) |
|
AbstractIFunction(String title,
String[] variableNames,
String[] parameterNames)
Creates a new instance of AbstractIFunction with specified variable and parameter names |
|
| Method Summary | |
void |
addFunctionListener(FunctionListener listener)
|
hep.aida.IAnnotation |
annotation()
|
String |
codeletString()
|
int |
dimension()
|
void |
excludeNormalizationAll()
|
double[] |
gradient(double[] values)
|
void |
includeNormalizationAll()
|
int |
indexOfParameter(String str)
|
protected void |
init(String title)
|
boolean |
isEqual(hep.aida.IFunction iFunction)
|
boolean |
isNormalized()
|
static void |
main(String[] args)
|
String |
normalizationParameter()
|
hep.aida.IRangeSet |
normalizationRange(int iAxis)
|
void |
normalize(boolean param)
|
int |
numberOfParameters()
|
double |
parameter(String str)
|
double[] |
parameterGradient(double[] values)
|
String[] |
parameterNames()
|
double[] |
parameters()
|
boolean |
providesGradient()
|
boolean |
providesNormalization()
|
boolean |
providesParameterGradient()
|
void |
removeFunctionListener(FunctionListener listener)
|
void |
setCodeletString(String str)
|
void |
setParameter(String str,
double param)
|
void |
setParameters(double[] pars)
|
void |
setTitle(String title)
|
String |
title()
|
abstract double |
value(double[] v)
Provide value for your function here. |
String |
variableName(int index)
|
String[] |
variableNames()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String[] variableNames
protected String[] parameterNames
protected String codeletString
protected double[] p
protected double[] gradient
| Constructor Detail |
public AbstractIFunction(String title,
int dimension,
int numberOfParameters)
public AbstractIFunction(String title,
String[] variableNames,
String[] parameterNames)
| Method Detail |
protected void init(String title)
public void setCodeletString(String str)
public abstract double value(double[] v)
value in interface hep.aida.IFunctionpublic boolean providesGradient()
providesGradient in interface hep.aida.IFunctionpublic double[] gradient(double[] values)
gradient in interface hep.aida.IFunctionpublic String codeletString()
codeletString in interface hep.aida.IFunctionpublic hep.aida.IAnnotation annotation()
annotation in interface hep.aida.IFunctionpublic int dimension()
dimension in interface hep.aida.IFunctionpublic int indexOfParameter(String str)
indexOfParameter in interface hep.aida.IFunctionpublic int numberOfParameters()
numberOfParameters in interface hep.aida.IFunctionpublic double parameter(String str)
parameter in interface hep.aida.IFunctionpublic String[] parameterNames()
parameterNames in interface hep.aida.IFunctionpublic double[] parameters()
parameters in interface hep.aida.IFunction
public void setParameter(String str,
double param)
throws IllegalArgumentException
setParameter in interface hep.aida.IFunctionIllegalArgumentException
public void setParameters(double[] pars)
throws IllegalArgumentException
setParameters in interface hep.aida.IFunctionIllegalArgumentException
public void setTitle(String title)
throws IllegalArgumentException
setTitle in interface hep.aida.IFunctionIllegalArgumentExceptionpublic String title()
title in interface hep.aida.IFunctionpublic String variableName(int index)
variableName in interface hep.aida.IFunctionpublic String[] variableNames()
variableNames in interface hep.aida.IFunctionpublic void excludeNormalizationAll()
excludeNormalizationAll in interface hep.aida.IModelFunctionpublic void includeNormalizationAll()
includeNormalizationAll in interface hep.aida.IModelFunctionpublic boolean isNormalized()
isNormalized in interface hep.aida.IModelFunctionpublic hep.aida.IRangeSet normalizationRange(int iAxis)
normalizationRange in interface hep.aida.IModelFunctionpublic void normalize(boolean param)
normalize in interface hep.aida.IModelFunctionpublic double[] parameterGradient(double[] values)
parameterGradient in interface hep.aida.IModelFunctionpublic boolean providesNormalization()
providesNormalization in interface hep.aida.IModelFunctionpublic boolean providesParameterGradient()
providesParameterGradient in interface hep.aida.IModelFunctionpublic String normalizationParameter()
normalizationParameter in interface hep.aida.IFunctionpublic boolean isEqual(hep.aida.IFunction iFunction)
isEqual in interface hep.aida.IFunctionpublic static void main(String[] args)
public void addFunctionListener(FunctionListener listener)
addFunctionListener in interface FunctionDispatcherpublic void removeFunctionListener(FunctionListener listener)
removeFunctionListener in interface FunctionDispatcher
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||