Package dev.nm.analysis.function.rn2rm
Class RealVectorSubFunction
- java.lang.Object
-
- dev.nm.analysis.function.SubFunction<Vector>
-
- dev.nm.analysis.function.rn2rm.RealVectorSubFunction
-
- All Implemented Interfaces:
Function<Vector,Vector>
,RealVectorFunction
public class RealVectorSubFunction extends SubFunction<Vector> implements RealVectorFunction
This constructs aRealVectorFunction
from anotherRealVectorFunction
by restricting/fixing the values of a subset of variables.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
-
Field Summary
-
Fields inherited from class dev.nm.analysis.function.SubFunction
f, fixing
-
-
Constructor Summary
Constructors Constructor Description RealVectorSubFunction(RealVectorFunction f, Map<Integer,Double> fixing)
Construct a vector-valued sub-function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.-
Methods inherited from class dev.nm.analysis.function.SubFunction
dimensionOfDomain, dimensionOfRange, getAllParts, getVariablePart, isFixedIndex, isFixedIndex
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.nm.analysis.function.Function
dimensionOfDomain, dimensionOfRange
-
-
-
-
Constructor Detail
-
RealVectorSubFunction
public RealVectorSubFunction(RealVectorFunction f, Map<Integer,Double> fixing)
Construct a vector-valued sub-function.- Parameters:
f
- the unrestricted/original functionfixing
- the values held fixed for a subset of variables
-
-