1.1.0
CCC
 
Chebychev Class Reference

TODO : Dependency to csparse to be removed. More...

#include <Chebychev.hpp>

Inheritance diagram for Chebychev:
APolynomial AStringable ICloneable

Public Member Functions

 Chebychev ()
 
virtual ~Chebychev ()
 
void evalOp (MatrixSparse *Op, const VectorDouble &inv, VectorDouble &outv) const override
 ICloneable interface. More...
 
void evalOp (const ALinearOpMulti *Op, const VectorVectorDouble &inv, VectorVectorDouble &outv) const override
 
double eval (double x) const override
 
int fit (std::function< double(double)> f, double a=0., double b=1., double tol=EPSILON5) override
 
void init (int ncMax=10001, int nDisc=100, double a=0., double b=1., bool verbose=false)
 
void setCoeffs (const VectorDouble &coeffs)
 
int getNcMax () const
 
int getNDisc () const
 
double getA () const
 
double getB () const
 
bool getVerbose () const
 
void setA (double a)
 
void setB (double b)
 
void setNcMax (int ncMax)
 
void setNDisc (int nDisc)
 
void setVerbose (bool verbose)
 
int fit2 (AFunction *f, double a=0., double b=1., double tol=EPSILON5)
 
- Public Member Functions inherited from APolynomial
 APolynomial ()
 
 APolynomial (VectorDouble coeffs)
 
 APolynomial (const APolynomial &p)
 
APolynomialoperator= (const APolynomial &p)
 
virtual ~APolynomial ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (VectorDouble coeffs)
 
virtual void evalOpTraining (MatrixSparse *Op, const VectorDouble &inv, VectorVectorDouble &outv, VectorDouble &work) const
 
VectorDouble evalOp (MatrixSparse *Op, const VectorDouble &inv) const
 
VectorDouble getCoeffs () const
 
void setCoeffs (const VectorDouble coeffs)
 
int getDegree () const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Static Public Member Functions

static ChebychevcreateFromCoeffs (const VectorDouble coeffs)
 

Detailed Description

TODO : Dependency to csparse to be removed.

Constructor & Destructor Documentation

Chebychev::Chebychev ( )
Chebychev::~Chebychev ( )
virtual

Member Function Documentation

Chebychev * Chebychev::createFromCoeffs ( const VectorDouble  coeffs)
static
double Chebychev::eval ( double  x) const
overridevirtual

Implements APolynomial.

void Chebychev::evalOp ( MatrixSparse Op,
const VectorDouble inv,
VectorDouble outv 
) const
overridevirtual

ICloneable interface.

Interface for Apolynomial

Reimplemented from APolynomial.

void Chebychev::evalOp ( const ALinearOpMulti Op,
const VectorVectorDouble inv,
VectorVectorDouble outv 
) const
overridevirtual

Implements APolynomial.

int Chebychev::fit ( std::function< double(double)>  f,
double  a = 0.,
double  b = 1.,
double  tol = EPSILON5 
)
overridevirtual

Reimplemented from APolynomial.

int Chebychev::fit2 ( AFunction f,
double  a = 0.,
double  b = 1.,
double  tol = EPSILON5 
)
double Chebychev::getA ( ) const
inline
double Chebychev::getB ( ) const
inline
int Chebychev::getNcMax ( ) const
inline
int Chebychev::getNDisc ( ) const
inline
bool Chebychev::getVerbose ( ) const
inline
void Chebychev::init ( int  ncMax = 10001,
int  nDisc = 100,
double  a = 0.,
double  b = 1.,
bool  verbose = false 
)
void Chebychev::setA ( double  a)
inline
void Chebychev::setB ( double  b)
inline
void Chebychev::setCoeffs ( const VectorDouble coeffs)
inline
void Chebychev::setNcMax ( int  ncMax)
inline
void Chebychev::setNDisc ( int  nDisc)
inline
void Chebychev::setVerbose ( bool  verbose)
inline

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