|
|||||||||
| 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.FunctionXXplusSinXX
public class FunctionXXplusSinXX
Test case to test 1D optimizers. Function is x^2 + 4*sin(x^2).
| Constructor Summary | |
|---|---|
FunctionXXplusSinXX()
Default constuctor. |
|
FunctionXXplusSinXX(double extrema,
double domMin,
double domMax)
Constructor to specify extrema and domain. |
|
| Method Summary | |
|---|---|
double |
get2ndDerivative(double x)
Gets the second derivative of the function. |
double |
get2ndDerivative(double x,
double step,
int method)
Gets the second derivative of the function. |
double |
getDerivative(double x)
Gets the first derivative of the function. |
double |
getDerivative(double x,
double step,
int method)
Gets the first derivative of the function. |
double |
getDomainMax()
Gets the domain maximum |
double |
getDomainMin()
Gets the domain minimum. |
double |
getDomainTolerance()
Gets the tolerance. |
double |
getValue(double x)
Evaluates the function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionXXplusSinXX()
public FunctionXXplusSinXX(double extrema,
double domMin,
double domMax)
extrema - where the extrema isdomMin - domain minimumdomMax - domain maximum| Method Detail |
|---|
public double getDerivative(double x)
getDerivative in interface Optimizable1DContinuousDifferentiablex - location to calculate derivative
public double getDerivative(double x,
double step,
int method)
x - location to calculate derivativestep - step sizemethod - method
public double get2ndDerivative(double x)
get2ndDerivative in interface Optimizable1DContinuousDifferentiablex - location to calculate derivative
public double get2ndDerivative(double x,
double step,
int method)
x - location to calculate derivativestep - step sizemethod - method
public double getDomainMax()
getDomainMax in interface Optimizable1DContinuouspublic double getDomainMin()
getDomainMin in interface Optimizable1DContinuouspublic double getValue(double x)
getValue in interface Optimizable1DContinuousx - the location to evaluate the function at
public double getDomainTolerance()
getDomainTolerance in interface Optimizable1DContinuous
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||