|
|||||||||
| 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.FunctionXXYYND
public class FunctionXXYYND
Test case to test ND optimizers. Function is x^2 + y^2 + 0.4*x^2*y^2.
| Constructor Summary | |
|---|---|
FunctionXXYYND(int dim)
Default constuctor. |
|
FunctionXXYYND(int dim,
double[] extrema,
double[] domMin,
double[] domMax)
Constructor to specify extrema and 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 FunctionXXYYND(int dim)
dim - number of dimensions
public FunctionXXYYND(int dim,
double[] extrema,
double[] domMin,
double[] domMax)
dim - number of dimensionsextrema - where the extrema isdomMin - 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 | ||||||||