|
|||||||||
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.MinToMaxNDDifferentiable
public class MinToMaxNDDifferentiable
Finds the maximum of Differentiable ND functions by negating the function and finding the minimum.
Constructor Summary | |
---|---|
MinToMaxNDDifferentiable(OptimizableNDContinuousDifferentiable func)
Constructor to create the negated function |
Method Summary | |
---|---|
double[][] |
get2ndDerivative(double[] x)
Gets the negated hessian |
double |
get2ndDerivative(double[] x,
int dim1,
int dim2)
Gets the negated second derivative in a specific direction |
double[] |
getDerivative(double[] x)
Gets the negated gradient |
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)
Gets the negated value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinToMaxNDDifferentiable(OptimizableNDContinuousDifferentiable func)
func
- function to negateMethod Detail |
---|
public double[][] get2ndDerivative(double[] x)
get2ndDerivative
in interface OptimizableNDContinuousDifferentiable
x
- location to calculate derivative
public double get2ndDerivative(double[] x, int dim1, int dim2)
get2ndDerivative
in interface OptimizableNDContinuousDifferentiable
x
- location to calculate derivativedim1
- dimension to take the first derivativedim2
- dimension to take the second derivative
public double[] getDerivative(double[] x)
getDerivative
in interface OptimizableNDContinuousDifferentiable
x
- location to calculate derivative
public double[] getDomainMax()
getDomainMax
in interface OptimizableNDContinuous
public double[] getDomainMin()
getDomainMin
in interface OptimizableNDContinuous
public double getDomainTolerance()
getDomainTolerance
in interface OptimizableNDContinuous
public double getValue(double[] x)
getValue
in interface OptimizableNDContinuous
x
- location to get value at
public int getNumberOfDimensions()
getNumberOfDimensions
in interface OptimizableNDContinuous
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |