public class PnPassedFunction extends PnFunction
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS| Constructor and Description |
|---|
PnPassedFunction(PuFunction function)
Construct a new PnPassedFunction.
|
| Modifier and Type | Method and Description |
|---|---|
double |
eval(PdVector x)
Evaluate the function at a specified position x.
|
PdVector |
evalGradient(PdVector x,
PdVector aGradient)
At position x evaluate the gradient of the functional, aGradient may be null.
|
PdMatrix |
evalHessian(PdMatrix aHessian)
At position x evaluate the hessian of the functional, aHessian may be null.
|
int |
getNumOfVariables()
Get the number of variables.
|
enableEvaluation, isEvaluableaddInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, update, updatePanelspublic PnPassedFunction(PuFunction function)
function - the function to evaluate, number of functions must be equal to 1.public int getNumOfVariables()
getNumOfVariables in class PnFunctionpublic double eval(PdVector x)
eval in class PnFunctionpublic PdVector evalGradient(PdVector x, PdVector aGradient)
PnFunctionevalGradient in class PnFunctionpublic PdMatrix evalHessian(PdMatrix aHessian)
PnFunctionevalHessian in class PnFunction"