|
| ParametricLinearPiecesFunction (Col< A > const &start, Mat< B > const &slope, Mat< B > const &intercept) |
| ParametricLinearPiecesFunction default constructor. More...
|
|
arma::Col< B > | eval (A const &x) override |
| Calculate the image of \(x\) by \(f\) assuming a linear behavior for each component. In this context, \(a_{ij}\) is the slope for the \(j\)-th variable while \(b_{ij}\) is the intercept for the \(j\)-th variable. More...
|
|
A | getStart (size_t const i=0) const |
|
arma::Col< B > | getSlope (size_t const i=0) const |
| Obtain the \(i\)-th slope vector \(a_i = (a_{i1}, \ldots, a_{in})\) of the linear function. More...
|
|
arma::Col< B > | getIntercept (size_t const i=0) const |
| Obtain the \(i\)-th intercept vector \(b_i = (b_{i1}, \ldots, b_{in})\) of the linear function. More...
|
|
size_t | findIndex (A const &x) const |
|
| Function ()=default |
|
arma::Col< B > | operator() (A const &x) |
| Evaluate the function \(f(x)=y\). More...
|
|
template<typename A, typename B>
class fluxionum::ParametricLinearPiecesFunction< A, B >
Parametric linear pieces function.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
\[ f(x) = \left[\begin{array}{c} a_{i1}x + b_{i1} \\ \vdots \\ a_{in}x + b_{in} \end{array}\right] \]
The \(i\)-th index comes from \(S\), the sorted set of \(m\) interval boundaries described for fluxionum::LinearPiecesFunction
Notice the domain is not \(B\) but \(B^n\)
- See also
- fluxionum::Function
-
fluxionum::LinearPiecesFunction