trajectory_collection
|
Piecewise function. More...
#include <Func.h>
Public Member Functions | |
PiecewiseFunc () | |
Constructor. More... | |
virtual T | operator() (double t) const override |
Evaluate function value. More... | |
virtual T | derivative (double t, int order=1) const override |
Evaluate function derivative value. More... | |
virtual size_t | index (double t) const |
Get the index of piecewise functions. More... | |
virtual double | domainLowerLimit () const override |
Get lower limit of domain. More... | |
virtual double | domainUpperLimit () const override |
Get upper limit of domain. More... | |
void | clearFuncs () |
Clear function. More... | |
void | appendFunc (double t, std::shared_ptr< Func< T >> func) |
Add function. More... | |
void | setDomainLowerLimit (double t) |
Set lower limit of domain. More... | |
Public Member Functions inherited from TrajColl::Func< T > | |
Func () | |
Constructor. More... | |
Protected Member Functions | |
void | checkArg (double t) const |
Check argument of function. More... | |
Protected Attributes | |
std::map< double, std::shared_ptr< Func< T > > > | funcs_ |
Map of upper bound of domain and function. More... | |
double | tLowerLimit_ = std::numeric_limits<double>::lowest() |
Lower limit of domain of this function. More... | |
Piecewise function.
T | function value type |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineoverridevirtual |
Evaluate function derivative value.
t | arugment of function |
order | derivative order |
Implements TrajColl::Func< T >.
Reimplemented in TrajColl::CubicHermiteSpline< T >.
|
inlineoverridevirtual |
Get lower limit of domain.
Reimplemented from TrajColl::Func< T >.
|
inlineoverridevirtual |
Get upper limit of domain.
Reimplemented from TrajColl::Func< T >.
|
inlinevirtual |
|
inlineoverridevirtual |
Evaluate function value.
t | arugment of function |
Implements TrajColl::Func< T >.
Reimplemented in TrajColl::CubicHermiteSpline< T >.
|
inline |
|
protected |
|
protected |