#include <APolynomial.hpp>
|
| APolynomial () |
|
| APolynomial (const VectorDouble &coeffs) |
|
| APolynomial (const APolynomial &m) |
|
APolynomial & | operator= (const APolynomial &p) |
|
virtual | ~APolynomial () |
|
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface for AStringable. More...
|
|
void | init (const VectorDouble &coeffs) |
|
virtual double | eval (double x) const =0 |
|
virtual void | evalOp (MatrixSparse *Op, const VectorDouble &inv, VectorDouble &outv) const |
|
virtual void | evalOp (MatrixSparse *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const =0 |
|
virtual void | evalOpTraining (MatrixSparse *Op, const Eigen::VectorXd &inv, std::vector< Eigen::VectorXd > &outv, Eigen::VectorXd &work) const |
|
Eigen::VectorXd | evalOp (MatrixSparse *Op, const Eigen::VectorXd &inv) const |
|
virtual void | addEvalOp (ALinearOp *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const =0 |
|
VectorDouble | getCoeffs () const |
|
void | setCoeffs (const VectorDouble &coeffs) |
|
int | getDegree () const |
|
virtual int | fit (const std::function< double(double)> &f, double from=0., double to=1., double tol=EPSILON5) |
|
| AStringable () |
|
| AStringable (const AStringable &r) |
|
AStringable & | operator= (const AStringable &r) |
|
virtual | ~AStringable () |
|
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
|
virtual void | display (int level) const final |
|
| ICloneable () |
|
virtual | ~ICloneable () |
|
virtual ICloneable * | clone () const =0 |
|
◆ APolynomial() [1/3]
APolynomial::APolynomial |
( |
| ) |
|
◆ APolynomial() [2/3]
◆ APolynomial() [3/3]
◆ ~APolynomial()
APolynomial::~APolynomial |
( |
| ) |
|
|
virtual |
◆ addEvalOp()
virtual void APolynomial::addEvalOp |
( |
ALinearOp * |
Op, |
|
|
const Eigen::VectorXd & |
inv, |
|
|
Eigen::VectorXd & |
outv |
|
) |
| const |
|
pure virtual |
◆ eval()
virtual double APolynomial::eval |
( |
double |
x | ) |
const |
|
pure virtual |
◆ evalOp() [1/3]
Eigen::VectorXd APolynomial::evalOp |
( |
MatrixSparse * |
Op, |
|
|
const Eigen::VectorXd & |
inv |
|
) |
| const |
◆ evalOp() [2/3]
virtual void APolynomial::evalOp |
( |
MatrixSparse * |
Op, |
|
|
const Eigen::VectorXd & |
inv, |
|
|
Eigen::VectorXd & |
outv |
|
) |
| const |
|
pure virtual |
◆ evalOp() [3/3]
◆ evalOpTraining()
virtual void APolynomial::evalOpTraining |
( |
MatrixSparse * |
Op, |
|
|
const Eigen::VectorXd & |
inv, |
|
|
std::vector< Eigen::VectorXd > & |
outv, |
|
|
Eigen::VectorXd & |
work |
|
) |
| const |
|
inlinevirtual |
◆ fit()
virtual int APolynomial::fit |
( |
const std::function< double(double)> & |
f, |
|
|
double |
from = 0. , |
|
|
double |
to = 1. , |
|
|
double |
tol = EPSILON5 |
|
) |
| |
|
inlinevirtual |
◆ getCoeffs()
◆ getDegree()
int APolynomial::getDegree |
( |
| ) |
const |
|
inline |
◆ init()
◆ operator=()
◆ setCoeffs()
◆ toString()
The documentation for this class was generated from the following files: