1.5.1
CCC
 
Chebychev Class Reference

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

#include <Chebychev.hpp>

Inheritance diagram for Chebychev:
APolynomial AStringable ICloneable

Detailed Description

TODO : Dependency to csparse to be removed.

Public Member Functions

 Chebychev ()
 
virtual ~Chebychev ()
 
void evalOp (MatrixSparse *S, const constvect x, vect y) const override
 ICloneable interface. More...
 
void addEvalOp (ALinearOp *Op, const constvect inv, vect outv) const override
 
double eval (double x) const override
 
int fit (const 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 (const VectorDouble &coeffs)
 
 APolynomial (const APolynomial &m)
 
APolynomialoperator= (const APolynomial &p)
 
virtual ~APolynomial ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (const VectorDouble &coeffs)
 
virtual void evalOp (MatrixSparse *Op, const VectorDouble &inv, VectorDouble &outv) const
 
virtual void evalOpTraining (MatrixSparse *Op, const constvect inv, std::vector< std::vector< double >> &outv, std::vector< double > &work) const
 
VectorDouble evalOp (MatrixSparse *Op, const constvect 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)
 

Constructor & Destructor Documentation

◆ Chebychev()

Chebychev::Chebychev ( )

◆ ~Chebychev()

Chebychev::~Chebychev ( )
virtual

Member Function Documentation

◆ addEvalOp()

void Chebychev::addEvalOp ( ALinearOp Op,
const constvect  inv,
vect  outv 
) const
overridevirtual

Implements APolynomial.

◆ createFromCoeffs()

Chebychev * Chebychev::createFromCoeffs ( const VectorDouble coeffs)
static

◆ eval()

double Chebychev::eval ( double  x) const
overridevirtual

Implements APolynomial.

◆ evalOp()

void Chebychev::evalOp ( MatrixSparse S,
const constvect  x,
vect  y 
) const
overridevirtual

ICloneable interface.

Interface for Apolynomial

Implements APolynomial.

◆ fit()

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

Reimplemented from APolynomial.

◆ fit2()

int Chebychev::fit2 ( AFunction f,
double  a = 0.,
double  b = 1.,
double  tol = EPSILON5 
)

◆ getA()

double Chebychev::getA ( ) const
inline

◆ getB()

double Chebychev::getB ( ) const
inline

◆ getNcMax()

int Chebychev::getNcMax ( ) const
inline

◆ getNDisc()

int Chebychev::getNDisc ( ) const
inline

◆ getVerbose()

bool Chebychev::getVerbose ( ) const
inline

◆ init()

void Chebychev::init ( int  ncMax = 10001,
int  nDisc = 100,
double  a = 0.,
double  b = 1.,
bool  verbose = false 
)

◆ setA()

void Chebychev::setA ( double  a)
inline

◆ setB()

void Chebychev::setB ( double  b)
inline

◆ setCoeffs()

void Chebychev::setCoeffs ( const VectorDouble coeffs)
inline

◆ setNcMax()

void Chebychev::setNcMax ( int  ncMax)
inline

◆ setNDisc()

void Chebychev::setNDisc ( int  nDisc)
inline

◆ setVerbose()

void Chebychev::setVerbose ( bool  verbose)
inline

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