public class RealScalarSubFunction extends SubFunction<Double> implements RealScalarFunction
RealScalarFunction
from another
RealScalarFunction
by restricting/fixing the values of a subset of
variables.Function.EvaluationException
f, fixing
Constructor and Description |
---|
RealScalarSubFunction(RealScalarFunction f,
Map<Integer,Double> fixing)
Construct a scalar sub-function.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double x)
Evaluate the function f at x.
|
Double |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
dimensionOfDomain, dimensionOfRange, getAllParts, getVariablePart, isFixedIndex, isFixedIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dimensionOfDomain, dimensionOfRange
public RealScalarSubFunction(RealScalarFunction f, Map<Integer,Double> fixing)
f
- the unrestricted/original functionfixing
- the values held fixed for a subset of variablesCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.