public interface IOptimizableFunc
Modifier and Type | Method and Description |
---|---|
double[] |
getCoefficients()
Returns the initial value of a[], that is, the coefficients of
the model
|
double |
getLastError()
Last error of the model
|
double[] |
gradient(double[][] x,
double[][] y)
Returns the gradient vector of the derivative of an error function (E)
with respect to each coefficient of the model, using an input observation
matrix (x[]) and an expected output matrix (y[]).
|
void |
setCoefficients(double[] a)
Establish the final value of a[], that is, the coefficients of
model
|
double[] getCoefficients()
Returns the initial value of a[], that is, the coefficients of the model
void setCoefficients(double[] a)
Establish the final value of a[], that is, the coefficients of model
a
- double array of final coefficients values
double[] gradient(double[][] x, double[][] y)
Returns the gradient vector of the derivative of an error function (E) with respect to each coefficient of the model, using an input observation matrix (x[]) and an expected output matrix (y[]). Also returns the error associated.
x
- Array with all inputs of all observationsy
- Array with all expected outputs of all observationsdouble getLastError()
Last error of the model