public class RealScalarSubFunction extends SubFunction<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,
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, isFixedIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimensionOfDomain, dimensionOfRangepublic 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.