public class OrthogonalLineFunction extends java.lang.Object implements UnivariateFunction
Constructor and Description |
---|
OrthogonalLineFunction(MultivariateFunction func)
construct univariate function from multivariate function
|
OrthogonalLineFunction(MultivariateFunction func,
int selectedDimension,
double[] initialArguments)
construct univariate function from multivariate function
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double arg)
compute function value
|
double |
getLowerBound()
get lower bound of argument
|
double |
getUpperBound()
get upper bound of argument
|
void |
selectArgument(int num)
use only the specified argument in the
constructed univariate function
and keep all others constant
|
void |
setAllArguments(double[] start)
set (change) values of all arguments (start values)
|
void |
setArgument(double val)
set (change) value of a single argument
(the one currently active)
|
public OrthogonalLineFunction(MultivariateFunction func)
func
- multivariate functionpublic OrthogonalLineFunction(MultivariateFunction func, int selectedDimension, double[] initialArguments)
func
- multivariate functionthe
- initial arguments to the base MultivariateFunction (may be null)selectedDimension
- The selected dimension/argument that the line "runs" alongpublic void setAllArguments(double[] start)
start
- start valuespublic void setArgument(double val)
val
- value of argumentpublic void selectArgument(int num)
num
- argument numberpublic double evaluate(double arg)
UnivariateFunction
evaluate
in interface UnivariateFunction
public double getLowerBound()
UnivariateFunction
getLowerBound
in interface UnivariateFunction
public double getUpperBound()
UnivariateFunction
getUpperBound
in interface UnivariateFunction