trajectory_collection
Public Member Functions | Protected Attributes | List of all members
TrajColl::Polynomial< T, Order > Class Template Reference

Polynomial function. More...

#include <Func.h>

Inheritance diagram for TrajColl::Polynomial< T, Order >:
Inheritance graph
[legend]
Collaboration diagram for TrajColl::Polynomial< T, Order >:
Collaboration graph
[legend]

Public Member Functions

 Polynomial (const std::array< T, Order+1 > &coeff, double t0=0.0)
 Constructor. More...
 
int order () const
 Get polynomial order. More...
 
virtual T operator() (double t) const override
 Evaluate function value. More...
 
virtual T derivative (double t, int derivativeOrder=1) const override
 Evaluate function derivative value. More...
 
- Public Member Functions inherited from TrajColl::Func< T >
 Func ()
 Constructor. More...
 
virtual double domainLowerLimit () const
 Get lower limit of domain. More...
 
virtual double domainUpperLimit () const
 Get upper limit of domain. More...
 

Protected Attributes

std::array< T, Order+1 > coeff_
 Coefficients from low order (i.e., constant term) to high order. More...
 
double t0_
 Offset of function arugment. More...
 

Detailed Description

template<class T, int Order>
class TrajColl::Polynomial< T, Order >

Polynomial function.

Template Parameters
Tfunction value type
Orderorder of polynomial function

Definition at line 154 of file Func.h.

Constructor & Destructor Documentation

◆ Polynomial()

template<class T , int Order>
TrajColl::Polynomial< T, Order >::Polynomial ( const std::array< T, Order+1 > &  coeff,
double  t0 = 0.0 
)
inline

Constructor.

Parameters
coeffcoefficients of polynomial (from low order (i.e., constant term) to high order)
t0offset of function arugment

Definition at line 161 of file Func.h.

Member Function Documentation

◆ derivative()

template<class T , int Order>
virtual T TrajColl::Polynomial< T, Order >::derivative ( double  t,
int  derivativeOrder = 1 
) const
inlineoverridevirtual

Evaluate function derivative value.

Parameters
tarugment of function
derivativeOrderderivative order

Implements TrajColl::Func< T >.

Definition at line 186 of file Func.h.

◆ operator()()

template<class T , int Order>
virtual T TrajColl::Polynomial< T, Order >::operator() ( double  t) const
inlineoverridevirtual

Evaluate function value.

Parameters
tarugment of function

Implements TrajColl::Func< T >.

Reimplemented in TrajColl::Constant< T >.

Definition at line 172 of file Func.h.

◆ order()

template<class T , int Order>
int TrajColl::Polynomial< T, Order >::order ( ) const
inline

Get polynomial order.

Definition at line 164 of file Func.h.

Member Data Documentation

◆ coeff_

template<class T , int Order>
std::array<T, Order + 1> TrajColl::Polynomial< T, Order >::coeff_
protected

Coefficients from low order (i.e., constant term) to high order.

Definition at line 223 of file Func.h.

◆ t0_

template<class T , int Order>
double TrajColl::Polynomial< T, Order >::t0_
protected

Offset of function arugment.

Definition at line 226 of file Func.h.


The documentation for this class was generated from the following file: