UnivariateFunction
public class OrthogonalLineFunction extends java.lang.Object implements UnivariateFunction
Constructor | 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 | 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 functionselectedDimension
- The selected dimension/argument that the line "runs" alonginitialArguments
- the initial arguments to the base MultivariateFunction (may be null)public 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
arg
- function argumentpublic double getLowerBound()
UnivariateFunction
getLowerBound
in interface UnivariateFunction
public double getUpperBound()
UnivariateFunction
getUpperBound
in interface UnivariateFunction
http://code.google.com/p/jebl2/