X
- the type of the independent variable (input) of the discrete functionY
- the type of the dependent variable (output)of the discrete function and type of the elements of the
environment on which the operations are based.public class DiscreteFunctionOperationRepository<X,Y>
extends java.lang.Object
Contains instances of operations on discrete functions, based on an environment and with a conversion.
The main purpose is to be able to re-use the instances of the operations, in order to avoid to have to re-create them all the time.
Constructor and Description |
---|
DiscreteFunctionOperationRepository(Environment<Y> environment,
Conversion<X,Y> conversion,
java.util.Comparator<X> comparator) |
Modifier and Type | Method and Description |
---|---|
DiscreteFunctionAddition<X,Y> |
addition() |
DiscreteFunctionDivision<X,Y> |
division() |
DiscreteFunctionMultiplication<X,Y> |
multiplication() |
DiscreteFunctionSubtraction<X,Y> |
subtraction() |
public DiscreteFunctionOperationRepository(Environment<Y> environment, Conversion<X,Y> conversion, java.util.Comparator<X> comparator)
public DiscreteFunctionAddition<X,Y> addition()
public DiscreteFunctionSubtraction<X,Y> subtraction()
public DiscreteFunctionMultiplication<X,Y> multiplication()
public DiscreteFunctionDivision<X,Y> division()