|
|||||||||
| 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.BaseModelFunction
public class BaseModelFunction
| Constructor Summary | |
|---|---|
BaseModelFunction(String name,
String title,
FunctionCore notNorm,
FunctionCore norm)
|
|
BaseModelFunction(String name,
String tit,
IFunction func)
|
|
| Method Summary | |
|---|---|
void |
addFunctionListener(FunctionListener listener)
|
IAnnotation |
annotation()
|
void |
calculateNormalizationAmplitude()
|
String |
codeletString()
String describing the metatype and implementation of the function. |
FunctionCore |
core()
|
int |
dimension()
Dimensionality of the domain space. |
void |
excludeNormalizationAll()
Set empty range in all axes. |
double |
functionValue(double[] var)
|
double |
getNormalizationAmplitude()
|
RangeSet[] |
getRangeSet()
|
double[] |
gradient(double[] x)
Gradient of the function. |
void |
includeNormalizationAll()
Set full range in all axes. |
int |
indexOfParameter(String name)
Return -1 if parameter not found (name undefined). |
boolean |
isEqual(IFunction f)
Compare if functions are the same. |
boolean |
isNormalized()
Return true if normalization is currently switched on. |
String |
normalizationParameter()
Returns the name of the normalization parameter if the function has one. |
IRangeSet |
normalizationRange(int iAxis)
Set the normalization range from -inf to +inf in the i-th axis (dimension). |
void |
normalize(boolean on)
Normalize by internally adjusting some of the parameters. |
int |
numberOfParameters()
Number of parameters. |
double[] |
numericGradient(double[] x)
|
double[] |
numericParameterGradient(double[] x)
|
double |
parameter(String name)
|
double[] |
parameterGradient(double[] x)
Compute gradient with respect to parameters. |
String[] |
parameterNames()
Names of paramaters. |
double[] |
parameters()
Retrieve current vector of parameters. |
boolean |
providesGradient()
Determine whether function is able to compute gradient. |
boolean |
providesNormalization()
|
boolean |
providesParameterGradient()
Return true if provides parameter gradient. |
void |
removeFunctionListener(FunctionListener listener)
|
void |
setCodeletString(String codelet)
|
void |
setParameter(String name,
double x)
Set parameter's value by name. |
boolean |
setParameterNames(String[] params)
|
void |
setParameters(double[] params)
Set new vector of parameters. |
void |
setTitle(String t)
Set the histogram title. |
String |
title()
Get the Function's title. |
String |
toString()
|
double |
value(double[] var)
Scalar value of the function. |
String |
variableName(int i)
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, wait, wait, wait |
| Methods inherited from interface hep.aida.ref.event.Connectable |
|---|
isConnected, setConnected |
| Constructor Detail |
|---|
public BaseModelFunction(String name,
String tit,
IFunction func)
public BaseModelFunction(String name,
String title,
FunctionCore notNorm,
FunctionCore norm)
| Method Detail |
|---|
public FunctionCore core()
public int dimension()
IFunction
dimension in interface IFunctionpublic int numberOfParameters()
IFunction
numberOfParameters in interface IFunctionpublic double functionValue(double[] var)
public final double value(double[] var)
IFunction
value in interface IFunctionpublic IAnnotation annotation()
annotation in interface IFunctionpublic String variableName(int i)
IFunction
variableName in interface IFunctionpublic String[] variableNames()
IFunction
variableNames in interface IFunctionpublic String[] parameterNames()
IFunction
parameterNames in interface IFunctionpublic int indexOfParameter(String name)
IFunction
indexOfParameter in interface IFunctionpublic void setParameters(double[] params)
IFunction
setParameters in interface IFunction
public void setParameter(String name,
double x)
throws IllegalArgumentException
IFunction
setParameter in interface IFunctionname - The name of the parameter.x - The new value of the parameter.
IllegalArgumentException - If name does not correspond to a parameter.public double[] parameters()
IFunction
parameters in interface IFunctionpublic double parameter(String name)
parameter in interface IFunctionpublic boolean isEqual(IFunction f)
IFunction
isEqual in interface IFunctionpublic boolean providesGradient()
IFunction
providesGradient in interface IFunctionpublic double[] gradient(double[] x)
IFunction
gradient in interface IFunctionpublic String codeletString()
IFunction
codeletString in interface IFunctionpublic void setCodeletString(String codelet)
public String normalizationParameter()
IFunction
normalizationParameter in interface IFunctionpublic boolean providesNormalization()
providesNormalization in interface IModelFunctionpublic void normalize(boolean on)
IModelFunction
normalize in interface IModelFunctionpublic boolean isNormalized()
IModelFunction
isNormalized in interface IModelFunctionpublic double[] parameterGradient(double[] x)
IModelFunction
parameterGradient in interface IModelFunctionpublic boolean providesParameterGradient()
IModelFunction
providesParameterGradient in interface IModelFunctionpublic IRangeSet normalizationRange(int iAxis)
IModelFunction
normalizationRange in interface IModelFunctionpublic void includeNormalizationAll()
IModelFunction
includeNormalizationAll in interface IModelFunctionpublic void excludeNormalizationAll()
IModelFunction
excludeNormalizationAll in interface IModelFunctionpublic double getNormalizationAmplitude()
public void calculateNormalizationAmplitude()
public String title()
IFunction
title in interface IFunctionpublic void setTitle(String t)
IFunction
setTitle in interface IFunctiont - The title.public boolean setParameterNames(String[] params)
public double[] numericGradient(double[] x)
public double[] numericParameterGradient(double[] x)
public RangeSet[] getRangeSet()
public String toString()
toString in class Objectpublic void addFunctionListener(FunctionListener listener)
addFunctionListener in interface FunctionDispatcherpublic void removeFunctionListener(FunctionListener listener)
removeFunctionListener in interface FunctionDispatcher
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||