|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.BinaryFunction
public abstract class BinaryFunction
Base class for BivariateRealFunction
that can be composed with other functions.
Field Summary | |
---|---|
static BinaryFunction |
ADD
The + operator method wrapped as a BinaryFunction . |
static BinaryFunction |
ATAN2
The Math.atan2 method wrapped as a BinaryFunction . |
static BinaryFunction |
DIVIDE
The / operator method wrapped as a BinaryFunction . |
static BinaryFunction |
MULTIPLY
The * operator method wrapped as a BinaryFunction . |
static BinaryFunction |
POW
The Math.pow method wrapped as a BinaryFunction . |
static BinaryFunction |
SUBTRACT
The - operator method wrapped as a BinaryFunction . |
Constructor Summary | |
---|---|
BinaryFunction()
|
Method Summary | |
---|---|
ComposableFunction |
fix1stArgument(double fixedX)
Get a composable function by fixing the first argument of the instance. |
ComposableFunction |
fix2ndArgument(double fixedY)
Get a composable function by fixing the second argument of the instance. |
abstract double |
value(double x,
double y)
Compute the value for the function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BinaryFunction ADD
BinaryFunction
.
public static final BinaryFunction SUBTRACT
BinaryFunction
.
public static final BinaryFunction MULTIPLY
BinaryFunction
.
public static final BinaryFunction DIVIDE
BinaryFunction
.
public static final BinaryFunction POW
Math.pow
method wrapped as a BinaryFunction
.
public static final BinaryFunction ATAN2
Math.atan2
method wrapped as a BinaryFunction
.
Constructor Detail |
---|
public BinaryFunction()
Method Detail |
---|
public abstract double value(double x, double y) throws FunctionEvaluationException
value
in interface BivariateRealFunction
x
- abscissa for which the function value should be computedy
- ordinate for which the function value should be computed
FunctionEvaluationException
- if the function evaluation failspublic ComposableFunction fix1stArgument(double fixedX)
fixedX
- fixed value of the first argument
f.value(y) == value(fixedX, y)
public ComposableFunction fix2ndArgument(double fixedY)
fixedY
- fixed value of the second argument
f.value(x) == value(x, fixedY)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |