hep.aida.ref.function
Class BaseModelFunction
java.lang.Object
hep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.function.BaseModelFunction
- All Implemented Interfaces:
- hep.aida.dev.IDevManagedObject, hep.aida.IFunction, hep.aida.IManagedObject, hep.aida.IModelFunction, Connectable, FunctionDispatcher
- Direct Known Subclasses:
- JELBaseModelFunction
public class BaseModelFunction
- extends ManagedObject
- implements hep.aida.IModelFunction, FunctionDispatcher
BaseModelFunction
public BaseModelFunction(String name,
String tit,
hep.aida.IFunction func)
BaseModelFunction
public BaseModelFunction(String name,
String title,
FunctionCore notNorm,
FunctionCore norm)
core
public FunctionCore core()
dimension
public int dimension()
- Specified by:
dimension
in interface hep.aida.IFunction
numberOfParameters
public int numberOfParameters()
- Specified by:
numberOfParameters
in interface hep.aida.IFunction
functionValue
public double functionValue(double[] var)
value
public final double value(double[] var)
- Specified by:
value
in interface hep.aida.IFunction
annotation
public hep.aida.IAnnotation annotation()
- Specified by:
annotation
in interface hep.aida.IFunction
variableName
public String variableName(int i)
- Specified by:
variableName
in interface hep.aida.IFunction
variableNames
public String[] variableNames()
- Specified by:
variableNames
in interface hep.aida.IFunction
parameterNames
public String[] parameterNames()
- Specified by:
parameterNames
in interface hep.aida.IFunction
indexOfParameter
public int indexOfParameter(String name)
- Specified by:
indexOfParameter
in interface hep.aida.IFunction
setParameters
public void setParameters(double[] params)
- Specified by:
setParameters
in interface hep.aida.IFunction
setParameter
public void setParameter(String name,
double x)
throws IllegalArgumentException
- Specified by:
setParameter
in interface hep.aida.IFunction
- Throws:
IllegalArgumentException
parameters
public double[] parameters()
- Specified by:
parameters
in interface hep.aida.IFunction
parameter
public double parameter(String name)
- Specified by:
parameter
in interface hep.aida.IFunction
isEqual
public boolean isEqual(hep.aida.IFunction f)
- Specified by:
isEqual
in interface hep.aida.IFunction
providesGradient
public boolean providesGradient()
- Specified by:
providesGradient
in interface hep.aida.IFunction
gradient
public double[] gradient(double[] x)
- Specified by:
gradient
in interface hep.aida.IFunction
codeletString
public String codeletString()
- Specified by:
codeletString
in interface hep.aida.IFunction
setCodeletString
public void setCodeletString(String codelet)
normalizationParameter
public String normalizationParameter()
- Specified by:
normalizationParameter
in interface hep.aida.IFunction
providesNormalization
public boolean providesNormalization()
- Specified by:
providesNormalization
in interface hep.aida.IModelFunction
normalize
public void normalize(boolean on)
- Specified by:
normalize
in interface hep.aida.IModelFunction
isNormalized
public boolean isNormalized()
- Specified by:
isNormalized
in interface hep.aida.IModelFunction
parameterGradient
public double[] parameterGradient(double[] x)
- Specified by:
parameterGradient
in interface hep.aida.IModelFunction
providesParameterGradient
public boolean providesParameterGradient()
- Specified by:
providesParameterGradient
in interface hep.aida.IModelFunction
normalizationRange
public hep.aida.IRangeSet normalizationRange(int iAxis)
- Specified by:
normalizationRange
in interface hep.aida.IModelFunction
includeNormalizationAll
public void includeNormalizationAll()
- Specified by:
includeNormalizationAll
in interface hep.aida.IModelFunction
excludeNormalizationAll
public void excludeNormalizationAll()
- Specified by:
excludeNormalizationAll
in interface hep.aida.IModelFunction
getNormalizationAmplitude
public double getNormalizationAmplitude()
calculateNormalizationAmplitude
public void calculateNormalizationAmplitude()
title
public String title()
- Specified by:
title
in interface hep.aida.IFunction
setTitle
public void setTitle(String t)
- Specified by:
setTitle
in interface hep.aida.IFunction
setParameterNames
public boolean setParameterNames(String[] params)
numericGradient
public double[] numericGradient(double[] x)
numericParameterGradient
public double[] numericParameterGradient(double[] x)
getRangeSet
public RangeSet[] getRangeSet()
toString
public String toString()
- Overrides:
toString
in class Object
addFunctionListener
public void addFunctionListener(FunctionListener listener)
- Specified by:
addFunctionListener
in interface FunctionDispatcher
removeFunctionListener
public void removeFunctionListener(FunctionListener listener)
- Specified by:
removeFunctionListener
in interface FunctionDispatcher
jHepWork 3.1 ©