Class AbstractDiscreteFunctionBinaryOperation<X,Y>
- java.lang.Object
-
- org.tensorics.core.function.operations.AbstractDiscreteFunctionBinaryOperation<X,Y>
-
- Type Parameters:
X
- the type of the independent variable in theDiscreteFunction
.Y
- the type of the dependent variable in theDiscreteFunction
- All Implemented Interfaces:
java.io.Serializable
,BinaryFunction<DiscreteFunction<X,Y>,DiscreteFunction<X,Y>>
,BinaryOperation<DiscreteFunction<X,Y>>
- Direct Known Subclasses:
DiscreteFunctionAddition
,DiscreteFunctionDivision
,DiscreteFunctionMultiplication
,DiscreteFunctionSubtraction
public abstract class AbstractDiscreteFunctionBinaryOperation<X,Y> extends java.lang.Object implements BinaryOperation<DiscreteFunction<X,Y>>, java.io.Serializable
A binary operation that takes twoDiscreteFunction
s and produces aDiscreteFunction
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
DiscreteFunction<X,Y>
perform(DiscreteFunction<X,Y> left, DiscreteFunction<X,Y> right)
Has to be implemented to perform the actual operation.java.lang.String
toString()
-
-
-
Method Detail
-
perform
public DiscreteFunction<X,Y> perform(DiscreteFunction<X,Y> left, DiscreteFunction<X,Y> right)
Description copied from interface:BinaryFunction
Has to be implemented to perform the actual operation. The order of operands might be important or not, depending, if the operation is commutative or not.- Specified by:
perform
in interfaceBinaryFunction<X,Y>
- Parameters:
left
- the left operand to be used in the operationright
- the right operand to be used in the operation- Returns:
- the result of the operation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-