Package dev.nm.analysis.function.rn2rm
Class AbstractRealVectorFunction
- java.lang.Object
-
- dev.nm.analysis.function.rn2rm.AbstractRealVectorFunction
-
- All Implemented Interfaces:
Function<Vector,Vector>,RealVectorFunction
- Direct Known Subclasses:
AbstractR1RnFunction,ProposalFunction
public abstract class AbstractRealVectorFunction extends Object implements RealVectorFunction
This abstract implementation implementsFunction.dimensionOfDomain()andFunction.dimensionOfRange()by returning the input arguments at constructor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
-
Constructor Summary
Constructors Constructor Description AbstractRealVectorFunction(int dimensionOfDomain, int dimensionOfRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdimensionOfDomain()Get the number of variables the function has.intdimensionOfRange()Get the dimension of the range space of the function.
-
-
-
Method Detail
-
dimensionOfDomain
public final int dimensionOfDomain()
Description copied from interface:FunctionGet the number of variables the function has. For example, for a univariate function, the domain dimension is 1; for a bivariate function, the domain dimension is 2.- Specified by:
dimensionOfDomainin interfaceFunction<Vector,Vector>- Returns:
- the number of variables
-
dimensionOfRange
public final int dimensionOfRange()
Description copied from interface:FunctionGet the dimension of the range space of the function. For example, for a Rn->Rm function, the dimension of the range is m.- Specified by:
dimensionOfRangein interfaceFunction<Vector,Vector>- Returns:
- the dimension of the range
-
-