public abstract class PnFunction extends PsObject
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 |
---|
PnFunction() |
Modifier and Type | Method and Description |
---|---|
void |
enableEvaluation(boolean flag)
Enable evaluation of function.
|
abstract double |
eval(PdVector x)
At position x evaluate the functional.
|
abstract PdVector |
evalGradient(PdVector x,
PdVector aGradient)
At position x evaluate the gradient of the functional, aGradient may be null.
|
abstract PdMatrix |
evalHessian(PdMatrix aHessian)
At position x evaluate the hessian of the functional, aHessian may be null.
|
abstract int |
getNumOfVariables()
Get number of free argument variables.
|
boolean |
isEvaluable()
Check whether function allows evaluation.
|
addInspector, 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, updatePanels
public boolean isEvaluable()
public void enableEvaluation(boolean flag)
public abstract int getNumOfVariables()
public abstract double eval(PdVector x)
public abstract PdVector evalGradient(PdVector x, PdVector aGradient)
"