Relacs Numerics Library  0.9.8
Public Member Functions | List of all members
Polynom Class Reference

#include <basisfunction.h>

Inheritance diagram for Polynom:
Inheritance graph
[legend]
Collaboration diagram for Polynom:
Collaboration graph
[legend]

Public Member Functions

 Polynom (void)
 
virtual ~Polynom (void)
 
void operator() (double x, ArrayD &y) const
 
virtual void basis (double x, ArrayD &y) const
 
double operator() (const ArrayD &c, double x) const
 
virtual double value (const ArrayD &c, double x) const
 
- Public Member Functions inherited from BasisFunction
 BasisFunction (void)
 
virtual ~BasisFunction (void)
 
void operator() (double x, ArrayD &y) const
 
double operator() (const ArrayD &c, double x) const
 

Detailed Description

A polynomial basis function.

Author
Jan Benda
Version
1.0

\[ f_i(x) = x^i \]

\[ f(x) = \sum_{i=0}^n c_i x^i \]

Constructor & Destructor Documentation

Polynom ( void  )
~Polynom ( void  )
virtual

Member Function Documentation

void operator() ( double  x,
ArrayD y 
) const

Returns the values of the first y.size() basis functions at position x in y. This operator is NOT virtual in order to speed up computation when using templates. If you need a virtual function as an interface, implement basis().

References Array< T >::size().

Referenced by Polynom::basis(), and Polynom::value().

void basis ( double  x,
ArrayD y 
) const
virtual

Returns the values of the first y.size() basis functions at position x in y. This function IS virtual and might slow things down. If you need a NON virtual function as an interface, implement operator().

Reimplemented from BasisFunction.

References Polynom::operator()().

double operator() ( const ArrayD c,
double  x 
) const

Returns the linear combination of the first c.size() basis functions at position x with coefficients c. This operator is NOT virtual in order to speed up computation when using templates. If you need a virtual function as an interface, implement value().

References Array< T >::size().

double value ( const ArrayD c,
double  x 
) const
virtual

Returns the linear combination of the first c.size() basis functions at position x with coefficients c. This function IS virtual and might slow things down. If you need a NON virtual function as an interface, implement operator().

Reimplemented from BasisFunction.

References Polynom::operator()().


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