|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.bme.smile.commons.optimize.test.FunctionExponential
public class FunctionExponential
Test case to test 1D optimizers. Function is 10-10*exp(-x+1)+5*exp(-2*(x-1)).
Constructor Summary | |
---|---|
FunctionExponential()
Default constructor. |
|
FunctionExponential(double domMin,
double domMax)
Constructor to set the 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 FunctionExponential()
public FunctionExponential(double domMin, double domMax)
domMin
- domain minimumdomMax
- domain maximumMethod Detail |
---|
public double getDerivative(double x)
getDerivative
in interface Optimizable1DContinuousDifferentiable
x
- 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 Optimizable1DContinuousDifferentiable
x
- 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 Optimizable1DContinuous
public double getDomainMin()
getDomainMin
in interface Optimizable1DContinuous
public double getValue(double x)
getValue
in interface Optimizable1DContinuous
x
- 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 |