|
|||||||||
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.FunctionNumericND1DDifferentiation
public class FunctionNumericND1DDifferentiation
A wrapper class used to facilitate getting derivatives of ND functions along each dimension individually
Field Summary | |
---|---|
static double |
DEFAULT_STEP
|
static int |
DIFF_3_POINT
|
static int |
DIFF_5_POINT
|
static int |
DIFF_7_POINT
|
static int |
DIFF_9_POINT
|
static int |
DIFF_BAC_EULER
|
static int |
DIFF_FWD_EULER
|
Constructor Summary | |
---|---|
FunctionNumericND1DDifferentiation(OptimizableNDContinuous function,
int dim)
Creates object to be used for getting a derivative of an ND function along 1-dimension, but contains the information to take more derivatives, along another other dimension as well. |
|
FunctionNumericND1DDifferentiation(OptimizableNDContinuous function,
int dim,
double step,
int method)
Creates object to be used for getting a derivative of an ND function along 1-dimension, but contains the information to take more derivatives, along another other dimension as well. |
Method Summary | |
---|---|
double |
getDerivative(double[] x)
Gets the first derivative. |
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)
Same as getDerivative. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DIFF_FWD_EULER
public static final int DIFF_BAC_EULER
public static final int DIFF_3_POINT
public static final int DIFF_5_POINT
public static final int DIFF_7_POINT
public static final int DIFF_9_POINT
public static final double DEFAULT_STEP
Constructor Detail |
---|
public FunctionNumericND1DDifferentiation(OptimizableNDContinuous function, int dim)
function
- function to be differentiateddim
- the dimension to take the derivative inpublic FunctionNumericND1DDifferentiation(OptimizableNDContinuous function, int dim, double step, int method)
function
- function to be differentiateddim
- the dimension to take the derivative inmethod
- the differentiating method requested: 0,1,3,5,7, or 9. Default is 3.Method Detail |
---|
public double getDerivative(double[] x)
x
- location to evaluate derivative at
public double[] getDomainMax()
getDomainMax
in interface OptimizableNDContinuous
public double[] getDomainMin()
getDomainMin
in interface OptimizableNDContinuous
public double getDomainTolerance()
getDomainTolerance
in interface OptimizableNDContinuous
public int getNumberOfDimensions()
getNumberOfDimensions
in interface OptimizableNDContinuous
public double getValue(double[] x)
getValue
in interface OptimizableNDContinuous
x
- the location to get the derivative.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |