Package org.apache.commons.math.analysis
Class BinaryFunction
- java.lang.Object
-
- org.apache.commons.math.analysis.BinaryFunction
-
- All Implemented Interfaces:
BivariateRealFunction
@Deprecated public abstract class BinaryFunction extends java.lang.Object implements BivariateRealFunction
Deprecated.in 2.2Base class forBivariateRealFunction
that can be composed with other functions.- Since:
- 2.1
- Version:
- $Revision: 1073498 $ $Date: 2011-02-22 21:57:26 +0100 (mar. 22 févr. 2011) $
-
-
Field Summary
Fields Modifier and Type Field Description static BinaryFunction
ADD
Deprecated.The + operator method wrapped as aBinaryFunction
.static BinaryFunction
ATAN2
Deprecated.TheFastMath.atan2
method wrapped as aBinaryFunction
.static BinaryFunction
DIVIDE
Deprecated.The / operator method wrapped as aBinaryFunction
.static BinaryFunction
MULTIPLY
Deprecated.The * operator method wrapped as aBinaryFunction
.static BinaryFunction
POW
Deprecated.TheFastMath.pow
method wrapped as aBinaryFunction
.static BinaryFunction
SUBTRACT
Deprecated.The - operator method wrapped as aBinaryFunction
.
-
Constructor Summary
Constructors Constructor Description BinaryFunction()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ComposableFunction
fix1stArgument(double fixedX)
Deprecated.Get a composable function by fixing the first argument of the instance.ComposableFunction
fix2ndArgument(double fixedY)
Deprecated.Get a composable function by fixing the second argument of the instance.abstract double
value(double x, double y)
Deprecated.Compute the value for the function.
-
-
-
Field Detail
-
ADD
public static final BinaryFunction ADD
Deprecated.The + operator method wrapped as aBinaryFunction
.
-
SUBTRACT
public static final BinaryFunction SUBTRACT
Deprecated.The - operator method wrapped as aBinaryFunction
.
-
MULTIPLY
public static final BinaryFunction MULTIPLY
Deprecated.The * operator method wrapped as aBinaryFunction
.
-
DIVIDE
public static final BinaryFunction DIVIDE
Deprecated.The / operator method wrapped as aBinaryFunction
.
-
POW
public static final BinaryFunction POW
Deprecated.TheFastMath.pow
method wrapped as aBinaryFunction
.
-
ATAN2
public static final BinaryFunction ATAN2
Deprecated.TheFastMath.atan2
method wrapped as aBinaryFunction
.
-
-
Method Detail
-
value
public abstract double value(double x, double y) throws FunctionEvaluationException
Deprecated.Compute the value for the function.- Specified by:
value
in interfaceBivariateRealFunction
- Parameters:
x
- Abscissa for which the function value should be computed.y
- Ordinate for which the function value should be computed.- Returns:
- the value.
- Throws:
FunctionEvaluationException
- if the function evaluation fails.
-
fix1stArgument
public ComposableFunction fix1stArgument(double fixedX)
Deprecated.Get a composable function by fixing the first argument of the instance.- Parameters:
fixedX
- fixed value of the first argument- Returns:
- a function such that
f.value(y) == value(fixedX, y)
-
fix2ndArgument
public ComposableFunction fix2ndArgument(double fixedY)
Deprecated.Get a composable function by fixing the second argument of the instance.- Parameters:
fixedY
- fixed value of the second argument- Returns:
- a function such that
f.value(x) == value(x, fixedY)
-
-