chebyshev_base Class Template Reference

Chebyshev Base class. More...

#include <chebyshev.h>

Inheritance diagram for chebyshev_base:

chebyshev_fitter chebyshev_polynome chebyshev_smooth chebyshev_smooth_fitter

List of all members.

Public Member Functions

 chebyshev_base ()
 chebyshev_base (std::size_t const &n_terms, FloatType const &low_limit, FloatType const &high_limit)
 chebyshev_base (std::size_t const &n_terms, FloatType const &low_limit, FloatType const &high_limit, scitbx::af::const_ref< FloatType > const &cheb_coefs)
FloatType f (FloatType const &x_in)
scitbx::af::shared< FloatType > f (scitbx::af::const_ref< FloatType > const &x_in)
scitbx::af::shared< FloatType > coefs ()
void replace (scitbx::af::const_ref< FloatType > const &new_coefs)


Detailed Description

template<typename FloatType = double>
class scitbx::math::chebyshev::chebyshev_base< FloatType >

Chebyshev Base class.

Constructor & Destructor Documentation

chebyshev_base (  )  [inline]

Default constructor

chebyshev_base ( std::size_t const &  n_terms,
FloatType const &  low_limit,
FloatType const &  high_limit 
) [inline]

Constructor that inits all members to nought

References SCITBX_ASSERT.

chebyshev_base ( std::size_t const &  n_terms,
FloatType const &  low_limit,
FloatType const &  high_limit,
scitbx::af::const_ref< FloatType > const &  cheb_coefs 
) [inline]

Same as before, but load coefficients as well

References SCITBX_ASSERT.


Member Function Documentation

FloatType f ( FloatType const &  x_in  )  [inline]

Return chebyshev approximation for the given coefficients

scitbx::af::shared<FloatType> f ( scitbx::af::const_ref< FloatType > const &  x_in  )  [inline]

Array version of previos function

scitbx::af::shared<FloatType> coefs (  )  [inline]

Return the coefficients

void replace ( scitbx::af::const_ref< FloatType > const &  new_coefs  )  [inline]

Replace the coefficients with a new set. The number of coefficients can be made smaller, but not expanded

Referenced by chebyshev_smooth_fitter::chebyshev_smooth_fitter().


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

Generated on Tue Sep 1 17:12:36 2009 for cctbx by  doxygen 1.5.6