FiniteDifferenceStep¶
-
class
FiniteDifferenceStep
(*args)¶ Base class to define finite difference steps.
- Available constructors:
FiniteDifferenceStep(epsilon=[1.0])
- Parameters
- epsilonsequence of float
Finite difference steps for each dimension.
Notes
Base class to define how finite difference steps are computed. Using FiniteDifferenceStep is equivalent to use its derived class
ConstantStep
. Another way to compute steps is through its second derived classBlendedStep
.Methods
__call__
(inP)Call self as a function.
Accessor to the object’s name.
Get the finite difference steps.
getId
()Accessor to the object’s id.
Accessor to the underlying implementation.
getName
()Accessor to the object’s name.
setEpsilon
(epsilon)Set the finite difference steps.
setName
(name)Accessor to the object’s name.
-
__init__
(*args)¶ Initialize self. See help(type(self)) for accurate signature.
-
getClassName
()¶ Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
-
getEpsilon
()¶ Get the finite difference steps.
- Returns
- epsilon
Point
If
ConstantStep
: Finite difference steps for each dimension.If
BlendedStep
: Finite difference step factors for each dimension.
- epsilon
-
getId
()¶ Accessor to the object’s id.
- Returns
- idint
Internal unique identifier.
-
getImplementation
()¶ Accessor to the underlying implementation.
- Returns
- implImplementation
The implementation class.
-
getName
()¶ Accessor to the object’s name.
- Returns
- namestr
The name of the object.
-
setEpsilon
(epsilon)¶ Set the finite difference steps.
- Parameters
- epsilonsequence of float
If
ConstantStep
: Finite difference steps for each dimension.If
BlendedStep
: Finite difference step factors for each dimension.
-
setName
(name)¶ Accessor to the object’s name.
- Parameters
- namestr
The name of the object.