|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfunction.BasicScalarFunction
function.VariableDomainScalarFunction
function.Rosenbrock
public class Rosenbrock
Extended Rosenbrock function, defined for an even number of input dimensions.
| Field Summary |
|---|
| Fields inherited from class function.BasicScalarFunction |
|---|
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS |
| Constructor Summary | |
|---|---|
Rosenbrock()
Default constructor. |
|
Rosenbrock(int inputDimension)
Constructs a Rosenbrock instance in the given number of dimensions. |
|
| Method Summary | |
|---|---|
void |
init()
Initialization method. |
double |
quickCompute(double[] x)
Compute method without dimension checking. |
void |
setInputDimension(int inputDimension)
Sets the number of input dimensions. |
java.lang.String |
toString()
|
| Methods inherited from class function.VariableDomainScalarFunction |
|---|
getBounds, getInputDimension, setBounds |
| Methods inherited from class function.BasicScalarFunction |
|---|
checkDimensions, compute, compute, compute, compute, compute, compute, getOutputDimension, isWithinBounds, makeBounds, quickCompute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rosenbrock()
public Rosenbrock(int inputDimension)
Rosenbrock instance in the given number of dimensions.
inputDimension - the given input dimension.| Method Detail |
|---|
public void init()
BasicScalarFunction
init in interface ScalarFunctioninit in class VariableDomainScalarFunctionpublic double quickCompute(double[] x)
BasicScalarFunction
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionx - the given input.
public void setInputDimension(int inputDimension)
VariableDomainScalarFunction
setInputDimension in interface VariableInputDimensionsetInputDimension in class VariableDomainScalarFunctioninputDimension - the given number of input dimensions.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||