|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfunction.BasicVectorFunction
function.VectorFunctionBuilder
public class VectorFunctionBuilder
Compose a vector function out of individual ScalarFunctions and
VectorFunctions.
| Field Summary |
|---|
| Fields inherited from class function.BasicVectorFunction |
|---|
DEFAULT_BOUNDS, DEFAULT_INPUT_DIMENSION, DEFAULT_OUTPUT_DIMENSION, VALUE_OUTSIDE_BOUNDS |
| Constructor Summary | |
|---|---|
VectorFunctionBuilder()
|
|
| Method Summary | |
|---|---|
Hypercube |
getBounds()
Returns the bounds. |
int |
getInputDimension()
Returns the inputDimension. |
int |
getOutputDimension()
Returns the output dimension for this Computable. |
java.util.ArrayList<ScalarFunction> |
getScalarFunctions()
Returns the scalarFunctions. |
java.util.ArrayList<VectorFunction> |
getVectorFunctions()
Returns the vectorFunctions. |
void |
init()
Initialization method. |
boolean |
isWithinBounds(double[] x)
Returns true if the given point is within bounds. |
void |
quickCompute(double[] x,
double[] y)
Abstract method that all subclasses must implement. |
void |
setBounds(Hypercube bounds)
Sets the bounds for this ScalarFunction. |
void |
setInputDimension(int inputDimension)
Sets the dimensionality of this ScalarFunction. |
void |
setOutputDimension(int outputDimension)
Sets the number of output dimensions. |
void |
setScalarFunctions(java.util.ArrayList<ScalarFunction> scalarFunctions)
Sets the scalarFunctions. |
void |
setVectorFunctions(java.util.ArrayList<VectorFunction> vectorFunctions)
Sets the vectorFunctions. |
| Methods inherited from class function.BasicVectorFunction |
|---|
checkInputDimension, compute, compute, compute, compute, compute, makeBounds, quickCompute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorFunctionBuilder()
| Method Detail |
|---|
public Hypercube getBounds()
getBounds in interface ComputablegetBounds in class BasicVectorFunctionpublic int getInputDimension()
getInputDimension in interface ComputablegetInputDimension in class BasicVectorFunctionpublic int getOutputDimension()
ComputableComputable.
getOutputDimension in interface ComputablegetOutputDimension in class BasicVectorFunctionpublic java.util.ArrayList<ScalarFunction> getScalarFunctions()
public java.util.ArrayList<VectorFunction> getVectorFunctions()
public void init()
BasicVectorFunction
init in interface VectorFunctioninit in class BasicVectorFunctionpublic boolean isWithinBounds(double[] x)
Computabletrue if the given point is within bounds.
isWithinBounds in interface ComputableisWithinBounds in class BasicVectorFunctionx - the given point.
true if within bounds.
public void quickCompute(double[] x,
double[] y)
BasicVectorFunctiondouble array and returns an
output double array.
quickCompute in interface VectorFunctionquickCompute in class BasicVectorFunctionx - input array.y - output array.public void setBounds(Hypercube bounds)
VariableBoundsScalarFunction.
setBounds in interface VariableBoundsbounds - the given bounds.public void setInputDimension(int inputDimension)
VariableInputDimension
setInputDimension in interface VariableInputDimensioninputDimension - the given number of dimensions.public void setOutputDimension(int outputDimension)
VariableOutputDimension
setOutputDimension in interface VariableOutputDimensionoutputDimension - the number of output dimensions.public void setScalarFunctions(java.util.ArrayList<ScalarFunction> scalarFunctions)
scalarFunctions - the given scalarFunctions.public void setVectorFunctions(java.util.ArrayList<VectorFunction> vectorFunctions)
vectorFunctions - the given vectorFunctions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||