|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jhu.bme.smile.commons.optimize.test.FunctionRosenbrock
public class FunctionRosenbrock
Test case to test ND optimizers. Function is 5*(x-y^2)^2 + (1-y)^2
| Constructor Summary | |
|---|---|
FunctionRosenbrock()
Default constructor. |
|
FunctionRosenbrock(double[] domMin,
double[] domMax)
Constructor to set the domain. |
|
| Method Summary | |
|---|---|
double[][] |
get2ndDerivative(double[] x)
Gets the hessian of the function. |
double[][] |
get2ndDerivative(double[] x,
double step,
int method)
Gets the hessian of the function. |
double |
get2ndDerivative(double[] x,
int dim1,
int dim2)
Gets the 2nd derivative of the function in a specific direction. |
double[] |
getDerivative(double[] x)
Gets the gradient of the function. |
double[] |
getDerivative(double[] x,
double step,
int method)
Gets the gradient of the function. |
double[] |
getDomainMax()
Gets the domain maximum. |
double[] |
getDomainMin()
Gets the domain minimum. |
double |
getDomainTolerance()
Gets the tolerance. |
int |
getNumberOfDimensions()
Gets the number of dimensions. |
double |
getValue(double[] x)
Evaluates the function at location x. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionRosenbrock()
public FunctionRosenbrock(double[] domMin,
double[] domMax)
domMin - domain minimumdomMax - domain maximum| Method Detail |
|---|
public double[] getDomainMax()
getDomainMax in interface OptimizableNDContinuouspublic double[] getDomainMin()
getDomainMin in interface OptimizableNDContinuouspublic double getDomainTolerance()
getDomainTolerance in interface OptimizableNDContinuouspublic int getNumberOfDimensions()
getNumberOfDimensions in interface OptimizableNDContinuouspublic double getValue(double[] x)
getValue in interface OptimizableNDContinuousx - location to evaluate function
public double[][] get2ndDerivative(double[] x)
get2ndDerivative in interface OptimizableNDContinuousDifferentiablex - location to calculate hessian
public double[][] get2ndDerivative(double[] x,
double step,
int method)
x - location to calculate hessianstep - step sizemethod - method
public double get2ndDerivative(double[] x,
int dim1,
int dim2)
get2ndDerivative in interface OptimizableNDContinuousDifferentiablex - location to calculate derivativedim1 - dimension to take the first derivativedim2 - dimension to take the second derivative
public double[] getDerivative(double[] x)
getDerivative in interface OptimizableNDContinuousDifferentiablex - location to calculate gradient
public double[] getDerivative(double[] x,
double step,
int method)
x - location to calculate gradientstep - step sizemethod - method
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||