|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VectorFunction
Provides methods for vector functions.
| Method Summary | |
|---|---|
double[] |
compute(double[] x)
Computes the outputs corresponding to the given input. |
void |
compute(double[][] x,
double[][] y)
Computes the outputs corresponding to the given set of inputs and stores the results in the given array, which cannot be null. |
cern.colt.matrix.DoubleMatrix1D |
compute(cern.colt.matrix.DoubleMatrix1D x,
cern.colt.matrix.DoubleMatrix1D y)
Computes the outputs corresponding to the given input, and stores the result in the supplied vector, which cannot be null. |
cern.colt.matrix.DoubleMatrix2D |
compute(cern.colt.matrix.DoubleMatrix2D X,
cern.colt.matrix.DoubleMatrix2D Y)
Computes the outputs corresponding to the given set of inputs and stores the result in the given array, which cannot be null. |
void |
init()
Init method. |
void |
quickCompute(double[] x,
double[] y)
Abstract method that all subclasses must implement. |
void |
quickCompute(cern.colt.matrix.DoubleMatrix2D X,
cern.colt.matrix.DoubleMatrix2D Y)
Applies compute(double[]) on a set of inputs, supplied row-wise in
a matrix. |
| Methods inherited from interface function.Computable |
|---|
compute, getBounds, getInputDimension, getOutputDimension, isWithinBounds |
| Method Detail |
|---|
double[] compute(double[] x)
x - the given input.
void compute(double[][] x,
double[][] y)
null.
compute in interface Computablex - the given inputs.y - array to hold the result.
cern.colt.matrix.DoubleMatrix1D compute(cern.colt.matrix.DoubleMatrix1D x,
cern.colt.matrix.DoubleMatrix1D y)
null.
x - the given input.y - matrix
cern.colt.matrix.DoubleMatrix2D compute(cern.colt.matrix.DoubleMatrix2D X,
cern.colt.matrix.DoubleMatrix2D Y)
null.
X - given matrix of inputs.Y - matrix to hold results.
void quickCompute(double[] x,
double[] y)
double array and returns an
output double array.
x - input array.y - output array.
void quickCompute(cern.colt.matrix.DoubleMatrix2D X,
cern.colt.matrix.DoubleMatrix2D Y)
compute(double[]) on a set of inputs, supplied row-wise in
a matrix. Stores the result in the supplied output array. No size-checking
is performed.
X - input matrix.Y - output matrix.void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||