|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFunction
Principal user-level function interface. Function is a self contained object, which remembers the current value of its parameters which are simple doubles. IFunction may be directly plotted or fitted. The standard convention of referring to variables by name: "x[0]" corresponds to variable number 0 etc.
| 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 title)
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. |
| Method Detail |
|---|
String title()
void setTitle(String title)
throws IllegalArgumentException
title - The title.
IllegalArgumentEception - If title cannot be changed.
IllegalArgumentExceptiondouble value(double[] x)
int dimension()
boolean isEqual(IFunction f)
double[] gradient(double[] x)
boolean providesGradient()
String variableName(int i)
String[] variableNames()
void setParameters(double[] params)
throws IllegalArgumentException
IllegalArgumentExceptiondouble[] parameters()
int numberOfParameters()
String[] parameterNames()
void setParameter(String name,
double x)
throws IllegalArgumentException
name - The name of the parameter.x - The new value of the parameter.
IllegalArgumentException - If name does not correspond to a parameter.double parameter(String name)
int indexOfParameter(String name)
IAnnotation annotation()
String codeletString()
String normalizationParameter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||