|
|||||||||
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.ProjectNDto1DOptimizable
public class ProjectNDto1DOptimizable
Projects an ND function to 1D so that LineSearchND can optimize in one dimension at a time.
Constructor Summary | |
---|---|
ProjectNDto1DOptimizable(OptimizableNDContinuous func)
Constructor to create the projected function |
Method Summary | |
---|---|
double |
getDomainMax()
Gets the domain maximum in the current dimension. |
double |
getDomainMin()
Gets the domain minimum in the current dimension. |
double |
getDomainTolerance()
Gets the tolerance. |
int |
getNumberOfDimensions()
Gets the number of dimensions. |
double |
getValue(double x)
Gets the value of the function evaluated at the current dimension of x |
void |
setCurrentDimension(int curDim)
Sets the current dimension. |
void |
setCurrentLocation(double location)
Sets the location of the current dimension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectNDto1DOptimizable(OptimizableNDContinuous func)
func
- function to projectMethod Detail |
---|
public double getDomainMax()
getDomainMax
in interface Optimizable1DContinuous
public double getDomainMin()
getDomainMin
in interface Optimizable1DContinuous
public double getDomainTolerance()
getDomainTolerance
in interface Optimizable1DContinuous
public double getValue(double x)
getValue
in interface Optimizable1DContinuous
x
- value in the current dimension to evaluate at
public void setCurrentLocation(double location)
location
- new location to be setpublic void setCurrentDimension(int curDim)
curDim
- current dimensionpublic int getNumberOfDimensions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |