ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::mad::LPolynomialS< T, M > Class Template Reference

#include <lpolynomial.h>

Inheritance diagram for adore::mad::LPolynomialS< T, M >:
Inheritance graph
Collaboration diagram for adore::mad::LPolynomialS< T, M >:
Collaboration graph

Public Member Functions

 LPolynomialS (const adoreMatrix< T, 1, M+1 > &data, DT xmin, DT xmax)
 
virtual CT f (DT x) const override
 
virtual DT limitHi () const override
 
virtual DT limitLo () const override
 
virtual void setLimits (DT lo, DT hi) override
 
virtual ALFunction< DT, CT > * clone () override
 
virtual ALFunction< DT, CT > * create_derivative () override
 
virtual void bound (const DT &xmin, const DT &xmax, CT &ymin, CT &ymax) override
 
- Public Member Functions inherited from adore::mad::ALFunction< T, T >
virtual void f (T *xvec, T *yvec, unsigned int count) const
 
void bound (T &ymin, T &ymax)
 
virtual ~ALFunction ()
 
 ALFunction ()
 
const T operator() (T x) const
 
bool isInDomain (T x)
 
f_bounded (T x)
 
void invalidateCachedBounds ()
 

Private Types

typedef T DT
 
typedef T CT
 

Private Attributes

adoreMatrix< T, 1, M+1 > m_data
 
DT m_xmin
 
DT m_xmax
 

Detailed Description

template<typename T, int M>
class adore::mad::LPolynomialS< T, M >

LPolynomialS - a polynomial with scalar y value, mapping T->T

Member Typedef Documentation

◆ CT

template<typename T , int M>
typedef T adore::mad::LPolynomialS< T, M >::CT
private

◆ DT

template<typename T , int M>
typedef T adore::mad::LPolynomialS< T, M >::DT
private

Constructor & Destructor Documentation

◆ LPolynomialS()

template<typename T , int M>
adore::mad::LPolynomialS< T, M >::LPolynomialS ( const adoreMatrix< T, 1, M+1 > &  data,
DT  xmin,
DT  xmax 
)
inline
Here is the caller graph for this function:

Member Function Documentation

◆ bound()

template<typename T , int M>
virtual void adore::mad::LPolynomialS< T, M >::bound ( const DT xmin,
const DT xmax,
CT ymin,
CT ymax 
)
inlineoverridevirtual

bound function values in the x-range defined by the hypercube between corner points lower left xmin and upper right xmax

Implements adore::mad::ALFunction< T, T >.

◆ clone()

template<typename T , int M>
virtual ALFunction<DT, CT>* adore::mad::LPolynomialS< T, M >::clone ( )
inlineoverridevirtual

create a copy of child class object - is used for function operations

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ create_derivative()

template<typename T , int M>
virtual ALFunction<DT, CT>* adore::mad::LPolynomialS< T, M >::create_derivative ( )
inlineoverridevirtual

create a new function object, which is the derivative function

Implements adore::mad::ALFunction< T, T >.

◆ f()

template<typename T , int M>
virtual CT adore::mad::LPolynomialS< T, M >::f ( DT  x) const
inlineoverridevirtual

function evaluation returns y of codomain type CT for a value x of domain type DT

Implements adore::mad::ALFunction< T, T >.

◆ limitHi()

template<typename T , int M>
virtual DT adore::mad::LPolynomialS< T, M >::limitHi ( ) const
inlineoverridevirtual

query upper limit of the domain

Implements adore::mad::ALFunction< T, T >.

◆ limitLo()

template<typename T , int M>
virtual DT adore::mad::LPolynomialS< T, M >::limitLo ( ) const
inlineoverridevirtual

lower limit of the domain

Implements adore::mad::ALFunction< T, T >.

◆ setLimits()

template<typename T , int M>
virtual void adore::mad::LPolynomialS< T, M >::setLimits ( DT  lo,
DT  hi 
)
inlineoverridevirtual

reduce or increase the limit of the function, without changing y

Implements adore::mad::ALFunction< T, T >.

Member Data Documentation

◆ m_data

template<typename T , int M>
adoreMatrix<T, 1, M + 1> adore::mad::LPolynomialS< T, M >::m_data
private

◆ m_xmax

template<typename T , int M>
DT adore::mad::LPolynomialS< T, M >::m_xmax
private

◆ m_xmin

template<typename T , int M>
DT adore::mad::LPolynomialS< T, M >::m_xmin
private

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