Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/classtcc_1_1_chebyshev_polynomial.html
Дата изменения: Tue Sep 15 02:25:38 2015
Дата индексирования: Sun Apr 10 04:46:35 2016
Кодировка:

Поисковые слова: п п п п п п п п п п п п р п р п р п р п р п р п
lsst.tcc: tcc::ChebyshevPolynomial Class Reference
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
tcc::ChebyshevPolynomial Class Reference

#include <cheby.h>

Public Member Functions

 ChebyshevPolynomial (std::vector< double > params, double minX=-1, double maxX=1)
 
 ChebyshevPolynomial ()
 
double getMinX () const
 
double getMaxX () const
 
unsigned int getOrder () const
 
double operator() (double x) const
 
std::string __repr__ () const
 

Public Attributes

std::vector< double > params
 

Detailed Description

1-dimensional weighted sum of Chebyshev polynomials of the first kind.

f(x) = c0 T0(x') + c1 T1(x') + c2 T2(x') + ... = c0 + c1 T1(x') + c2 T2(x') + ... where:

If the independent variable is outside the range [minX, maxX] then evaluation returns nan.

Definition at line 29 of file cheby.h.

Constructor & Destructor Documentation

tcc::ChebyshevPolynomial::ChebyshevPolynomial ( std::vector< double >  params,
double  minX = -1,
double  maxX = 1 
)
inlineexplicit

Construct a Chebyshev polynomial with specified parameters and range.

Exceptions
std::runtime_errorif params is empty or minX >= maxX
Parameters
paramspolynomial coefficients
minXminimum allowed x
maxXmaximum allowed x

Definition at line 36 of file cheby.h.

tcc::ChebyshevPolynomial::ChebyshevPolynomial ( )
inlineexplicit

Default constructor

Definition at line 57 of file cheby.h.

Member Function Documentation

std::string tcc::ChebyshevPolynomial::__repr__ ( ) const

Return a string representation (especially for Python)

Definition at line 6 of file cheby.cc.

double tcc::ChebyshevPolynomial::getMaxX ( ) const
inline

Get maximum allowed x

Definition at line 72 of file cheby.h.

double tcc::ChebyshevPolynomial::getMinX ( ) const
inline

Get minimum allowed x

Definition at line 67 of file cheby.h.

unsigned int tcc::ChebyshevPolynomial::getOrder ( ) const
inline

Get the polynomial order

Definition at line 77 of file cheby.h.

double tcc::ChebyshevPolynomial::operator() ( double  x) const
inline

Evaluate polynomial

Definition at line 82 of file cheby.h.

Member Data Documentation

std::vector<double> tcc::ChebyshevPolynomial::params

Definition at line 112 of file cheby.h.


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