herschel.ia.numeric.toolbox.fit
public abstract class AbstractModelFunction extends java.lang.Object
At each level of complexity for the independent variable "input" AbstractModelFunction implements the upper layer of methods required by the ModelFunction interface.
It also provides dummy functions for the unused cases.
| Constructor and Description |
|---|
AbstractModelFunction()
Default empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract double |
calc(double input) |
java.lang.String |
myName()
Returns a default string.
|
Double2d |
myPartial(ModelInput input,
Double1d par)
Return Double2d for the partial derivatives of the model.
|
Double2d |
myPartial(NumericData input,
Double1d par)
Return Double2d for the partial derivatives of the model.
|
Double1d |
myResult(ModelInput input,
Double1d par)
Return Double1d for the result of the model.
|
Double1d |
myResult(NumericData input,
Double1d par)
Return Double1d for the result of the model.
|
Double1d |
partial(double input)
Dummy methods for partial; One should be overwritten.
|
Double1d |
partial(double[] input) |
Double1d |
partial(double[] input,
Double1d param) |
Double1d |
partial(double input,
Double1d param) |
double |
result(double[] input,
Double1d params) |
double |
result(double input,
Double1d params)
Dummy methods for result; One should be overwritten.
|
public abstract double calc(double input)
public Double1d myResult(ModelInput input,
Double1d par)
input - independent variable(s)par - parameters of the modelpublic Double1d myResult(NumericData input,
Double1d par)
input - independent variable(s)par - parameters of the modelpublic Double2d myPartial(ModelInput input,
Double1d par)
input - independent variable(s)par - parameters of the modelpublic Double2d myPartial(NumericData input,
Double1d par)
input - independent variable(s)par - parameters of the modelpublic double result(double input,
Double1d params)
input - the values at which the model should be calculatedparams - the parameters for which the model should be calculatedjava.lang.IllegalArgumentException - at erroneous dimensionality of inputpartial(double,Double1d)public double result(double[] input,
Double1d params)
public Double1d partial(double input)
input - the values at which the model should be calculatedjava.lang.IllegalArgumentException - at erroneous dimensionality of inputpublic Double1d partial(double[] input)
public Double1d partial(double input,
Double1d param)
public Double1d partial(double[] input,
Double1d param)
public java.lang.String myName()