#include <linear_index_pattern.hpp>
Linear pattern y = ((x - offset) / dx) * dy + b
Definition at line 25 of file linear_index_pattern.hpp.
◆ LinearIndexPattern()
CppAD::cg::LinearIndexPattern::LinearIndexPattern |
( |
long |
xOffset, |
|
|
long |
dy, |
|
|
long |
dx, |
|
|
long |
b |
|
) |
| |
|
inline |
◆ detect() [1/2]
IndexPattern * CppAD::cg::IndexPattern::detect |
( |
const std::map< size_t, size_t > & |
x2y | ) |
|
|
inlinestaticinherited |
Detects the index pattern for the provided points (y = f(x))
- Parameters
-
indexX | the index of the independents (x) |
x2y | maps the independents to the dependents (x,y) |
- Returns
- the generated index pattern (must be deleted by user)
Definition at line 38 of file index_pattern_impl.hpp.
◆ detect() [2/2]
template<class VectorSizeT >
IndexPattern * CppAD::cg::IndexPattern::detect |
( |
const VectorSizeT & |
x2y | ) |
|
|
inlinestaticinherited |
◆ evaluate()
long CppAD::cg::LinearIndexPattern::evaluate |
( |
long |
x | ) |
const |
|
inline |
◆ getLinearConstantTerm()
long CppAD::cg::LinearIndexPattern::getLinearConstantTerm |
( |
| ) |
const |
|
inline |
◆ getLinearSlopeDx()
long CppAD::cg::LinearIndexPattern::getLinearSlopeDx |
( |
| ) |
const |
|
inline |
◆ getLinearSlopeDy()
long CppAD::cg::LinearIndexPattern::getLinearSlopeDy |
( |
| ) |
const |
|
inline |
◆ getSubIndexes()
void CppAD::cg::LinearIndexPattern::getSubIndexes |
( |
std::set< IndexPattern * > & |
indexes | ) |
const |
|
inlineoverridevirtual |
◆ getType()
IndexPatternType CppAD::cg::LinearIndexPattern::getType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getXOffset()
long CppAD::cg::LinearIndexPattern::getXOffset |
( |
| ) |
const |
|
inline |
◆ isConstant()
bool CppAD::cg::IndexPattern::isConstant |
( |
const IndexPattern & |
ip | ) |
|
|
inlinestaticinherited |
◆ setLinearConstantTerm()
void CppAD::cg::LinearIndexPattern::setLinearConstantTerm |
( |
long |
b | ) |
|
|
inline |
◆ setLinearSlopeDy()
void CppAD::cg::LinearIndexPattern::setLinearSlopeDy |
( |
long |
dy | ) |
|
|
inline |
◆ b_
long CppAD::cg::LinearIndexPattern::b_ |
|
protected |
◆ dx_
long CppAD::cg::LinearIndexPattern::dx_ |
|
protected |
◆ dy_
long CppAD::cg::LinearIndexPattern::dy_ |
|
protected |
◆ xOffset_
long CppAD::cg::LinearIndexPattern::xOffset_ |
|
protected |
The documentation for this class was generated from the following file:
- /local/robotpkg/var/tmp/robotpkg/wip/cppadcodegen/work/CppADCodeGen-2.4.3/include/cppad/cg/patterns/index/linear_index_pattern.hpp