|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScalarFunction
This is the basic interface that all objectives, constraints, approximate models, and so on, must implement.
| Method Summary | |
|---|---|
double |
compute(double[] x)
Computes the output corresponding to the given input. |
void |
compute(double[][] xArr,
double[] outputs)
Computes the outputs for the given inputs, and stores the result in the supplied array. |
double |
compute(cern.colt.matrix.DoubleMatrix1D xVec)
Computes the output corresponding to the given input. |
cern.colt.matrix.DoubleMatrix1D |
compute(cern.colt.matrix.DoubleMatrix2D xMat,
cern.colt.matrix.DoubleMatrix1D outputs)
Computes the outputs for the given inputs, and stores the result in the given vector. |
void |
init()
Init method. |
double |
quickCompute(double[] x)
Compute method without dimension checking. |
void |
quickCompute(cern.colt.matrix.DoubleMatrix2D xMat,
cern.colt.matrix.DoubleMatrix1D outputs)
Compute method without dimension checking, operating on DoubleMatrix2D and exploiting optimized operations therein. |
| Methods inherited from interface function.Computable |
|---|
compute, compute, getBounds, getInputDimension, getOutputDimension, isWithinBounds |
| Method Detail |
|---|
double compute(double[] x)
x - the given input.
x.
void compute(double[][] xArr,
double[] outputs)
xArr - array of inputs, row-wise.outputs - array to hold the result, cannot be null.double compute(cern.colt.matrix.DoubleMatrix1D xVec)
xVec - the given input.
cern.colt.matrix.DoubleMatrix1D compute(cern.colt.matrix.DoubleMatrix2D xMat,
cern.colt.matrix.DoubleMatrix1D outputs)
xMat - a matrix of inputs, specified row-wise.outputs - vector to hold the result, cannot be null.
double quickCompute(double[] x)
x - the given input.
void quickCompute(cern.colt.matrix.DoubleMatrix2D xMat,
cern.colt.matrix.DoubleMatrix1D outputs)
DoubleMatrix2D and exploiting optimized operations therein.
xMat - given matrix of inputs.outputs - vector to store the result.void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||