|
| Step (const T &y0, const T &y1, Real x0, Real x1) |
| Create a Function_::Step object that smoothly interpolates its output through a given range as its input moves through its range. More...
|
|
T | calcValue (const Vector &xin) const |
| Calculate the value of this function at a particular point. More...
|
|
T | calcDerivative (const Array_< int > &derivComponents, const Vector &xin) const |
| Calculate a partial derivative of this function at a particular point. More...
|
|
virtual int | getArgumentSize () const |
| Get the number of components expected in the input vector. More...
|
|
int | getMaxDerivativeOrder () const |
| Get the maximum derivative order this Function_ object can calculate. More...
|
|
T | calcDerivative (const std::vector< int > &derivComponents, const Vector &x) const |
| This provides compatibility with std::vector without requiring any copying. More...
|
|
virtual | ~Function_ () |
|
T | calcDerivative (const std::vector< int > &derivComponents, const Vector &x) const |
| This provides compatibility with std::vector without requiring any copying. More...
|
|
template<class T>
class SimTK::Function_< T >::Step
This is a Function_ subclass whose output value y=f(x) is smoothly stepped from y=y0 to y1 as its input argument goes from x=x0 to x1.
This is an S-shaped function with first and second derivatives y'(x0)=y'(x1)=0 and y''(x0)=y''(x1)==0. The third derivative y''' exists and is continuous but we cannot guarantee anything about it at the end points.
Calculate a partial derivative of this function at a particular point.
Which derivative to take is specified by listing the input components with which to take it. For example, if derivComponents=={0}, that indicates a first derivative with respective to component 0. If derivComponents=={0, 0, 0}, that indicates a third derivative with respective to component 0. If derivComponents=={4, 7}, that indicates a partial second derivative with respect to components 4 and 7.
- Parameters
-
derivComponents | The input components with respect to which the derivative should be taken. Its size must be less than or equal to the value returned by getMaxDerivativeOrder(). |
x | The Vector of input arguments. Its size must equal the value returned by getArgumentSize(). |
- Returns
- The value of the selected derivative, which is of type T.
Implements SimTK::Function_< T >.