|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.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.IFunction
public boolean providesGradient()
providesGradient
in interface hep.aida.IFunction
public double[] gradient(double[] values)
gradient
in interface hep.aida.IFunction
public String codeletString()
codeletString
in interface hep.aida.IFunction
public hep.aida.IAnnotation annotation()
annotation
in interface hep.aida.IFunction
public int dimension()
dimension
in interface hep.aida.IFunction
public int indexOfParameter(String str)
indexOfParameter
in interface hep.aida.IFunction
public int numberOfParameters()
numberOfParameters
in interface hep.aida.IFunction
public double parameter(String str)
parameter
in interface hep.aida.IFunction
public String[] parameterNames()
parameterNames
in interface hep.aida.IFunction
public double[] parameters()
parameters
in interface hep.aida.IFunction
public void setParameter(String str, double param) throws IllegalArgumentException
setParameter
in interface hep.aida.IFunction
IllegalArgumentException
public void setParameters(double[] pars) throws IllegalArgumentException
setParameters
in interface hep.aida.IFunction
IllegalArgumentException
public void setTitle(String title) throws IllegalArgumentException
setTitle
in interface hep.aida.IFunction
IllegalArgumentException
public String title()
title
in interface hep.aida.IFunction
public String variableName(int index)
variableName
in interface hep.aida.IFunction
public String[] variableNames()
variableNames
in interface hep.aida.IFunction
public void excludeNormalizationAll()
excludeNormalizationAll
in interface hep.aida.IModelFunction
public void includeNormalizationAll()
includeNormalizationAll
in interface hep.aida.IModelFunction
public boolean isNormalized()
isNormalized
in interface hep.aida.IModelFunction
public hep.aida.IRangeSet normalizationRange(int iAxis)
normalizationRange
in interface hep.aida.IModelFunction
public void normalize(boolean param)
normalize
in interface hep.aida.IModelFunction
public double[] parameterGradient(double[] values)
parameterGradient
in interface hep.aida.IModelFunction
public boolean providesNormalization()
providesNormalization
in interface hep.aida.IModelFunction
public boolean providesParameterGradient()
providesParameterGradient
in interface hep.aida.IModelFunction
public String normalizationParameter()
normalizationParameter
in interface hep.aida.IFunction
public boolean isEqual(hep.aida.IFunction iFunction)
isEqual
in interface hep.aida.IFunction
public static void main(String[] args)
public void addFunctionListener(FunctionListener listener)
addFunctionListener
in interface FunctionDispatcher
public 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 |