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 a RealVectorFunction from another RealVectorFunction by restricting/fixing the values of a subset of variables.
  • Constructor Details

    • RealVectorSubFunction

      public RealVectorSubFunction(RealVectorFunction f, Map<Integer,Double> fixing)
      Construct a vector-valued sub-function.
      Parameters:
      f - the unrestricted/original function
      fixing - the values held fixed for a subset of variables
  • Method Details

    • evaluate

      public Vector evaluate(Vector x)
      Description copied from interface: Function
      Evaluate the function f at x, where x is from the domain.
      Specified by:
      evaluate in interface Function<Vector,Vector>
      Parameters:
      x - x
      Returns:
      f(x)