hep.aida.ref.pdf
Class IFunctionWrapper
- java.lang.Object
-
- hep.aida.ref.pdf.Variable
-
- hep.aida.ref.pdf.Function
-
- hep.aida.ref.pdf.IFunctionWrapper
-
- All Implemented Interfaces:
- IFunction, IModelFunction, FunctionDispatcher, HasName, HasUnits, HasValue, VariableListener
public class IFunctionWrapper extends Function
Wrapper of IFunction. The result is a Function.
-
-
Constructor Summary
Constructors Constructor and Description IFunctionWrapper(java.lang.String name, IFunction f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleevaluateAnalyticalNormalization(Dependent dep)doublefunctionValue()double[]gradient()booleanhasAnalyticalNormalization(Dependent dep)To be overwritten if Function provides analytical normalization.booleanhasAnalyticalVariableGradient(Variable var)To be overwritten by classes extending Function.booleanisNormalized()Return true if normalization is currently switched on.voidnormalize(boolean normalize)Normalize by internally adjusting some of the parameters.double[]parameterGradient()doublevalue()Get the current value.voidvariableChanged(Variable var)This method is invoked when a variable in the function has changed its value.-
Methods inherited from class hep.aida.ref.pdf.Function
addFunctionListener, addVariable, addVariables, annotation, codeletString, dimension, evaluateAnalyticalVariableGradient, excludeNormalizationAll, functionMaxValue, functionValue, getDependent, getDependent, getNormalizationParameter, getParameter, getParameter, gradient, includeNormalizationAll, indexOfParameter, isComposite, isEqual, normalizationParameter, normalizationRange, normalizationRangeChanged, numberOfDependents, numberOfParameters, parameter, parameterGradient, parameterNames, parameters, providesGradient, providesGradientWithRespectToVariable, providesNormalization, providesParameterGradient, removeFunctionListener, setCodeletString, setNormalizationParamter, setParameter, setParameters, setTitle, setValue, title, value, variableChangedName, variableChangedRange, variableChangedUnits, variableChangedValue, variableChangingName, variableChangingUnits, variableChangingValue, variableName, variableNames
-
Methods inherited from class hep.aida.ref.pdf.Variable
addVariableListener, name, removeVariableListener, setName, setUnits, type, units
-
-
-
-
Constructor Detail
-
IFunctionWrapper
public IFunctionWrapper(java.lang.String name, IFunction f)
-
-
Method Detail
-
variableChanged
public void variableChanged(Variable var)
Description copied from class:FunctionThis method is invoked when a variable in the function has changed its value.- Overrides:
variableChangedin classFunction
-
hasAnalyticalVariableGradient
public boolean hasAnalyticalVariableGradient(Variable var)
Description copied from class:FunctionTo be overwritten by classes extending Function. This method is used internally by this class to determine if a function has can provide an analytical gradient with respect to a given Variable.- Overrides:
hasAnalyticalVariableGradientin classFunction
-
functionValue
public double functionValue()
- Overrides:
functionValuein classFunction
-
value
public double value()
Description copied from interface:HasValueGet the current value.
-
parameterGradient
public double[] parameterGradient()
- Overrides:
parameterGradientin classFunction
-
isNormalized
public boolean isNormalized()
Description copied from interface:IModelFunctionReturn true if normalization is currently switched on.- Specified by:
isNormalizedin interfaceIModelFunction- Overrides:
isNormalizedin classFunction
-
normalize
public void normalize(boolean normalize)
Description copied from interface:IModelFunctionNormalize by internally adjusting some of the parameters. When normalization is on then integral of the function in the normalization range equals to 1.- Specified by:
normalizein interfaceIModelFunction- Overrides:
normalizein classFunction
-
hasAnalyticalNormalization
public boolean hasAnalyticalNormalization(Dependent dep)
Description copied from class:FunctionTo be overwritten if Function provides analytical normalization.- Overrides:
hasAnalyticalNormalizationin classFunction
-
evaluateAnalyticalNormalization
public double evaluateAnalyticalNormalization(Dependent dep)
- Overrides:
evaluateAnalyticalNormalizationin classFunction
-
-
DMelt 3.0 © DataMelt by jWork.ORG