|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.fitter.InternalFitFunction
public class InternalFitFunction
| Constructor Summary | |
|---|---|
InternalFitFunction(hep.aida.dev.IDevFitDataIterator dataIterator,
IModelFunction func,
IFitMethod fitMethod)
|
|
| Method Summary | |
|---|---|
IAnnotation |
annotation()
|
String |
codeletString()
String describing the metatype and implementation of the function. |
int |
dimension()
Dimensionality of the domain space. |
double[] |
gradient(double[] x)
Gradient of the function. |
int |
indexOfParameter(String name)
Return -1 if parameter not found (name undefined). |
boolean |
isEqual(IFunction f)
Compare if functions are the same. |
String |
normalizationParameter()
Returns the name of the normalization parameter if the function has one. |
int |
numberOfParameters()
Number of parameters. |
double |
parameter(String name)
|
String[] |
parameterNames()
Names of paramaters. |
double[] |
parameters()
Retrieve current vector of parameters. |
boolean |
providesGradient()
Determine whether function is able to compute gradient. |
void |
setParameter(String name,
double x)
Set parameter's value by name. |
void |
setParameters(double[] params)
Set new vector of parameters. |
void |
setTitle(String str)
Set the histogram title. |
String |
title()
Get the Function's title. |
double |
value(double[] x)
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 java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalFitFunction(hep.aida.dev.IDevFitDataIterator dataIterator,
IModelFunction func,
IFitMethod fitMethod)
| Method Detail |
|---|
public int dimension()
IFunction
dimension in interface IFunctionpublic double value(double[] x)
IFunction
value in interface IFunctionpublic boolean providesGradient()
IFunction
providesGradient in interface IFunctionpublic String variableName(int i)
IFunction
variableName in interface IFunctionpublic String[] variableNames()
IFunction
variableNames in interface IFunctionpublic int numberOfParameters()
IFunction
numberOfParameters in interface IFunctionpublic double[] gradient(double[] x)
IFunction
gradient in interface IFunctionpublic boolean isEqual(IFunction f)
IFunction
isEqual in interface IFunctionpublic IAnnotation annotation()
annotation in interface IFunctionpublic String codeletString()
IFunction
codeletString in interface IFunctionpublic void setParameters(double[] params)
IFunction
setParameters in interface IFunctionpublic double[] parameters()
IFunction
parameters in interface IFunctionpublic int indexOfParameter(String name)
IFunction
indexOfParameter in interface IFunctionpublic String[] parameterNames()
IFunction
parameterNames in interface IFunction
public void setParameter(String name,
double x)
IFunction
setParameter in interface IFunctionname - The name of the parameter.x - The new value of the parameter.public double parameter(String name)
parameter in interface IFunctionpublic void setTitle(String str)
IFunction
setTitle in interface IFunctionstr - The title.public String title()
IFunction
title in interface IFunctionpublic String normalizationParameter()
IFunction
normalizationParameter in interface IFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||