STK++ 0.9.13
|
ChebyshevCoefficients class allows to compute the coefficients of a sampled function using Chebyshev polynomials. More...
#include <STK_ChebyshevCoefficients.h>
Public Types | |
typedef IBasis< Data, Coefs > | Base |
typedef Data::Type | Type |
![]() | |
typedef Data::Type | Type |
Public Member Functions | |
ChebyshevCoefficients (Data const *p_data=0, int dim=1, bool useDataValues=true) | |
default constructor | |
ChebyshevCoefficients (Data const &data, int dim, bool useDataValues=true) | |
constructor | |
ChebyshevCoefficients (ChebyshevCoefficients const &coefs) | |
copy constructor. | |
virtual | ~ChebyshevCoefficients () |
Destructor. | |
ChebyshevCoefficients * | clone () const |
clone pattern implementation | |
virtual bool | run () |
run the computations. | |
![]() | |
IBasis () | |
default constructor | |
IBasis (Data const *p_data, int dim, bool useDataValues=true) | |
constructor | |
IBasis (Data const &data, int dim, bool useDataValues=true) | |
constructor | |
IBasis (IBasis const &basis) | |
copy constructor. | |
virtual | ~IBasis () |
destructor | |
int | dim () const |
Coefs const & | coefficients () const |
Type | minValue () const |
Type | maxValue () const |
void | setData (Data const &data) |
Set the data set. | |
void | setDim (int dim) |
void | setMinValue (Type const &minValue) |
void | setMaxValue (Type const &maxValue) |
bool | initializeStep () |
Initialize the parameters minValue_ and maxValue_ using data set. | |
![]() | |
String const & | error () const |
get the last error message. | |
Public Attributes | |
Data const * | p_data_ |
the input data set | |
Coefs | coefficients_ |
Array2D of the coefficients. | |
int | dim_ |
number of dimension to build | |
Type | minValue_ |
Minimal value of the data. | |
Type | maxValue_ |
Maximal value of the data. | |
Additional Inherited Members | |
![]() | |
virtual void | update () |
update IBasis if a parameter or a new data set is set, update the state of this runner. | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
![]() | |
Data const * | p_data_ |
the input data set | |
int | dim_ |
number of dimension to build | |
bool | useDataValues_ |
Type | minValue_ |
Minimal value of the data. | |
Type | maxValue_ |
Maximal value of the data. | |
Coefs | coefficients_ |
Array2D of the coefficients. | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
ChebyshevCoefficients class allows to compute the coefficients of a sampled function using Chebyshev polynomials.
Chebyshev polynomials are important in approximation theory because the roots of the Chebyshev polynomials of the first kind, which are also called Chebyshev nodes, are used as nodes in polynomial interpolation.
Definition at line 51 of file STK_ChebyshevCoefficients.h.
typedef IBasis<Data, Coefs> STK::ChebyshevCoefficients< Data, Coefs >::Base |
Definition at line 54 of file STK_ChebyshevCoefficients.h.
typedef Data::Type STK::ChebyshevCoefficients< Data, Coefs >::Type |
Definition at line 55 of file STK_ChebyshevCoefficients.h.
|
inline |
default constructor
p_data | pointer on the data set |
dim | number of basis to use |
useDataValues | if true use data in order to find the minValue_ and maxValue_, use values set otherwise |
Definition at line 71 of file STK_ChebyshevCoefficients.h.
|
inline |
constructor
data | reference on the data set |
dim | number of basis to use |
useDataValues | if true use data in order to find the minValue_ and maxValue_, use values set otherwise |
Definition at line 79 of file STK_ChebyshevCoefficients.h.
|
inline |
copy constructor.
coefs | the coefficients to copy |
Definition at line 84 of file STK_ChebyshevCoefficients.h.
|
inlinevirtual |
|
inline |
clone pattern implementation
Definition at line 88 of file STK_ChebyshevCoefficients.h.
run the computations.
Implements STK::IRunnerBase.
Definition at line 95 of file STK_ChebyshevCoefficients.h.
References STK::IRunnerBase::hasRun_, STK::IRegression< Array, Array, Weight >::initializeStep(), STK::IRunnerBase::msg_error_, STK::SinesCoefficients< Data, Coefs >::run(), and STKERROR_NO_ARG.
Array2D of the coefficients.
Definition at line 121 of file STK_IBasis.h.
number of dimension to build
Definition at line 112 of file STK_IBasis.h.
Maximal value of the data.
Definition at line 118 of file STK_IBasis.h.
Minimal value of the data.
Definition at line 116 of file STK_IBasis.h.
the input data set
Definition at line 110 of file STK_IBasis.h.