public class RealScalarSubFunction extends SubFunction<java.lang.Double> implements RealScalarFunction
RealScalarFunction from another RealScalarFunction by
restricting/fixing the values of a subset of variables.Function.EvaluationExceptionf, fixing| Constructor and Description |
|---|
RealScalarSubFunction(RealScalarFunction f,
java.util.Map<java.lang.Integer,java.lang.Double> fixing)
Construct a scalar sub-function.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(double x)
Evaluate the function f at x.
|
java.lang.Double |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
dimensionOfDomain, dimensionOfRange, getAllParts, getVariablePart, isFixedIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimensionOfDomain, dimensionOfRangepublic RealScalarSubFunction(RealScalarFunction f, java.util.Map<java.lang.Integer,java.lang.Double> fixing)
f - the unrestricted/original functionfixing - the values held fixed for a subset of variables