Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

interpolator Class Template Reference

#include <interpolate.h>

Inheritance diagram for interpolator::

complex_interp real_interp List of all members.

Public Types

enum  { LINEAR = 0, SPLINE = 1 }

Public Methods

 interpolator ()
 interpolator (const interpolator< Y_type > &)
virtual interpolator<Y_type>& clear ()
interpolator<Y_type>& operator= (const interpolator< Y_type > &)
virtual interpolator<Y_type>& add (const double, const Y_type &)
virtual interpolator<Y_type>& add (const interpolator< Y_type > &)
interpolator<Y_type>& type (int)
interpolator<Y_type>& linear ()
interpolator<Y_type>& spline ()
interpolator<Y_type>& left_slope (const Y_type &)
interpolator<Y_type>& right_slope (const Y_type &)
virtual int ready () const
interpolator<Y_type>& build ()
int more_data () const
Y_type operator() (double x) const
Y_type prime (double x) const
int val_prime (double x, Y_type &y, Y_type &y_prime) const
interpolator<Y_type>& verbose ()
interpolator<Y_type>& quiet ()
interpolator<Y_type>& no_extrapolation_warning (int f)
unsigned size () const
double x (unsigned i) const
const Y_type& operator[] (unsigned i) const
virtual ~interpolator ()
void list_data_list () const
void list_lists () const

Protected Types

typedef pair< double, Y_type > data_type
typedef list< data_typedata_list
typedef data_list::iterator data_iter
typedef data_list::const_iterator const_data_iter
typedef pair< double, pair<
data_iter, data_iter > > 
entry
typedef vector<entryinterp_table
typedef interp_table::iterator table_iter
typedef interp_table::const_iterator const_table_iter
typedef interp_table::size_type index

Protected Methods

void build_linear ()
void build_spline ()
void linear (index, double, Y_type &) const
void spline (index, double, Y_type &) const
void lextrapolate (double, Y_type &) const
void rextrapolate (double, Y_type &) const
void prime_linear (index, double, Y_type &) const
void prime_spline (index, double, Y_type &) const
void linear (index i, double x) const
void spline (index i, double x) const
void lextrapolate (double x) const
void rextrapolate (double x) const
void prime_linear (index i, double x) const
void prime_spline (index i, double x) const

Protected Attributes

data_list data
data_list aux
interp_table table
Y_type result
bool ready_
bool no_warn_
int type_
Y_type lslope
Y_type rslope
bool user_ls
bool user_rs

template<class Y_type> class interpolator


Member Typedef Documentation

template<class Y_type>
typedef data_list::const_iterator interpolator<Y_type>::const_data_iter [protected]
 

Definition at line 237 of file interpolate.h.

template<class Y_type>
typedef interp_table::const_iterator interpolator<Y_type>::const_table_iter [protected]
 

Definition at line 241 of file interpolate.h.

template<class Y_type>
typedef data_list::iterator interpolator<Y_type>::data_iter [protected]
 

Definition at line 236 of file interpolate.h.

template<class Y_type>
typedef list< data_type > interpolator<Y_type>::data_list< data_type > [protected]
 

Definition at line 235 of file interpolate.h.

template<class Y_type>
typedef pair< double, Y_type > interpolator<Y_type>::data_type< double, Y_type > [protected]
 

Definition at line 234 of file interpolate.h.

template<class Y_type>
typedef pair< double, pair< data_iter, data_iter > > interpolator<Y_type>::entry< double, pair< data_iter, data_iter > > [protected]
 

Definition at line 238 of file interpolate.h.

template<class Y_type>
typedef interp_table::size_type interpolator<Y_type>::index [protected]
 

Definition at line 242 of file interpolate.h.

Referenced by operator[](), and x().

template<class Y_type>
typedef vector< entry > interpolator<Y_type>::interp_table<entry> [protected]
 

Definition at line 239 of file interpolate.h.

template<class Y_type>
typedef interp_table::iterator interpolator<Y_type>::table_iter [protected]
 

Definition at line 240 of file interpolate.h.


Member Enumeration Documentation

template<class Y_type>
anonymous enum
 

Enumeration values:
LINEAR  
SPLINE  

Definition at line 134 of file interpolate.h.


Constructor & Destructor Documentation

template<class Y_type>
interpolator< Y_type >::interpolator<Y_type> ( ) [inline]
 

Definition at line 51 of file num_interpolate.h.

template<class Y_type>
interpolator< Y_type >::interpolator<Y_type> ( const interpolator< Y_type > & f ) [inline]
 

Definition at line 57 of file num_interpolate.h.

template<class Y_type>
interpolator<Y_type>::~interpolator<Y_type> ( ) [inline, virtual]
 

Definition at line 225 of file interpolate.h.


Member Function Documentation

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::add ( const interpolator< Y_type > & Z ) [inline, virtual]
 

Definition at line 131 of file num_interpolate.h.

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::add ( const x,
const Y_type & y ) [inline, virtual]
 

Definition at line 104 of file num_interpolate.h.

Referenced by S_interp::add_S(), S_interp::add_SC(), adaptive::check_and_add(), complex_interp::construct(), ivcurve::data(), real_interp::file(), complex_interp::file(), adaptive::init(), super_film::table_extend(), S_interp::touchstone(), and complex_interp::touchstone().

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::build ( ) [inline]
 

Definition at line 191 of file num_interpolate.h.

Referenced by S_interp::build(), adaptive::build(), complex_interp::construct(), ivcurve::data(), real_interp::file(), complex_interp::file(), adaptive::init(), interpolator(), super_film::table_extend(), S_interp::touchstone(), and complex_interp::touchstone().

template<class Y_type>
void interpolator< Y_type >::build_linear ( ) [inline, protected]
 

Definition at line 260 of file num_interpolate.h.

Referenced by build().

template<class Y_type>
void interpolator< Y_type >::build_spline ( ) [inline, protected]
 

Definition at line 288 of file num_interpolate.h.

Referenced by build().

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::clear ( ) [inline, virtual]
 

Definition at line 69 of file num_interpolate.h.

Referenced by S_interp::clear(), S_interp::clear_noise(), ivcurve::data(), and super_film::table_init().

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::left_slope ( const Y_type & y ) [inline]
 

Definition at line 177 of file num_interpolate.h.

Referenced by ivcurve::data().

template<class Y_type>
void interpolator<Y_type>::lextrapolate ( double x ) const [inline, protected]
 

Definition at line 268 of file interpolate.h.

template<class Y_type>
void interpolator< Y_type >::lextrapolate ( double x,
Y_type & r ) const [inline, protected]
 

Definition at line 473 of file num_interpolate.h.

Referenced by lextrapolate(), and operator()().

template<class Y_type>
void interpolator<Y_type>::linear ( index i,
double x ) const [inline, protected]
 

Definition at line 264 of file interpolate.h.

template<class Y_type>
void interpolator< Y_type >::linear ( interpolator< Y_type >::index i,
double x,
Y_type & r ) const [inline, protected]
 

Definition at line 445 of file num_interpolate.h.

template<class Y_type>
interpolator< Y_type > & interpolator<Y_type>::linear<Y_type> ( ) [inline]
 

Definition at line 136 of file interpolate.h.

Referenced by linear(), and operator()().

template<class Y_type>
void interpolator< Y_type >::list_data_list ( ) const [inline]
 

Definition at line 633 of file num_interpolate.h.

template<class Y_type>
void interpolator< Y_type >::list_lists ( ) const [inline]
 

Definition at line 640 of file num_interpolate.h.

template<class Y_type>
int interpolator<Y_type>::more_data ( ) const [inline]
 

Definition at line 167 of file interpolate.h.

template<class Y_type>
interpolator< Y_type > & interpolator<Y_type>::no_extrapolation_warning<Y_type> ( int f ) [inline]
 

Definition at line 207 of file interpolate.h.

Referenced by ivcurve::data().

template<class Y_type>
Y_type interpolator< Y_type >::operator() ( double x ) const [inline]
 

Definition at line 410 of file num_interpolate.h.

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::operator= ( const interpolator< Y_type > & f ) [inline]
 

Definition at line 88 of file num_interpolate.h.

template<class Y_type>
const Y_type & interpolator<Y_type>::operator[] ( unsigned i ) const [inline]
 

Definition at line 220 of file interpolate.h.

template<class Y_type>
Y_type interpolator< Y_type >::prime ( double x ) const [inline]
 

Definition at line 492 of file num_interpolate.h.

template<class Y_type>
void interpolator<Y_type>::prime_linear ( index i,
double x ) const [inline, protected]
 

Definition at line 272 of file interpolate.h.

template<class Y_type>
void interpolator< Y_type >::prime_linear ( interpolator< Y_type >::index i,
double x,
Y_type & r ) const [inline, protected]
 

Definition at line 527 of file num_interpolate.h.

Referenced by prime(), and prime_linear().

template<class Y_type>
void interpolator<Y_type>::prime_spline ( index i,
double x ) const [inline, protected]
 

Definition at line 274 of file interpolate.h.

template<class Y_type>
void interpolator< Y_type >::prime_spline ( interpolator< Y_type >::index i,
double x,
Y_type & r ) const [inline, protected]
 

Definition at line 564 of file num_interpolate.h.

Referenced by prime(), and prime_spline().

template<class Y_type>
interpolator< Y_type > & interpolator<Y_type>::quiet<Y_type> ( ) [inline]
 

Definition at line 202 of file interpolate.h.

template<class Y_type>
int interpolator<Y_type>::ready ( ) const [inline, virtual]
 

Definition at line 155 of file interpolate.h.

Referenced by real_interp::get(), complex_interp::get(), S_interp::ready(), sweeper::sweep(), and S_interp::touchstone().

template<class Y_type>
void interpolator<Y_type>::rextrapolate ( double x ) const [inline, protected]
 

Definition at line 270 of file interpolate.h.

template<class Y_type>
void interpolator< Y_type >::rextrapolate ( double x,
Y_type & r ) const [inline, protected]
 

Definition at line 482 of file num_interpolate.h.

Referenced by operator()(), and rextrapolate().

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::right_slope ( const Y_type & y ) [inline]
 

Definition at line 182 of file num_interpolate.h.

Referenced by ivcurve::data().

template<class Y_type>
unsigned interpolator<Y_type>::size ( ) const [inline]
 

Definition at line 214 of file interpolate.h.

Referenced by adaptive::build(), ivcurve::data(), ivcurve::ikkinterp(), sweeper::sweep(), super_film::table_extend(), and super_film::table_init().

template<class Y_type>
void interpolator<Y_type>::spline ( index i,
double x ) const [inline, protected]
 

Definition at line 266 of file interpolate.h.

template<class Y_type>
void interpolator< Y_type >::spline ( interpolator< Y_type >::index i,
double x,
Y_type & r ) const [inline, protected]
 

Definition at line 455 of file num_interpolate.h.

template<class Y_type>
interpolator< Y_type > & interpolator<Y_type>::spline<Y_type> ( ) [inline]
 

Definition at line 137 of file interpolate.h.

Referenced by operator()(), spline(), and super_film::table_init().

template<class Y_type>
interpolator< Y_type > & interpolator< Y_type >::type ( int t ) [inline]
 

Definition at line 164 of file num_interpolate.h.

Referenced by linear(), and spline().

template<class Y_type>
int interpolator< Y_type >::val_prime ( double x,
Y_type & y,
Y_type & y_prime ) const [inline]
 

Definition at line 590 of file num_interpolate.h.

Referenced by ivcurve::data(), ivcurve::idcinterpslope(), and ivcurve::ikkinterpslope().

template<class Y_type>
interpolator< Y_type > & interpolator<Y_type>::verbose<Y_type> ( ) [inline]
 

Definition at line 201 of file interpolate.h.

template<class Y_type>
double interpolator<Y_type>::x ( unsigned i ) const [inline]
 

Definition at line 217 of file interpolate.h.

Referenced by ivcurve::data(), ivcurve::ikkinterp(), sweeper::sweep(), and super_film::table_extend().


Member Data Documentation

template<class Y_type>
data_list interpolator<Y_type>::aux [protected]
 

Definition at line 244 of file interpolate.h.

template<class Y_type>
data_list interpolator<Y_type>::data [protected]
 

Definition at line 244 of file interpolate.h.

template<class Y_type>
Y_type interpolator<Y_type>::lslope [protected]
 

Definition at line 250 of file interpolate.h.

template<class Y_type>
bool interpolator<Y_type>::no_warn_ [protected]
 

Definition at line 248 of file interpolate.h.

template<class Y_type>
bool interpolator<Y_type>::ready_ [protected]
 

Definition at line 247 of file interpolate.h.

template<class Y_type>
Y_type interpolator<Y_type>::result [mutable, protected]
 

Definition at line 246 of file interpolate.h.

template<class Y_type>
Y_type interpolator<Y_type>::rslope [protected]
 

Definition at line 250 of file interpolate.h.

template<class Y_type>
interp_table interpolator<Y_type>::table [protected]
 

Definition at line 245 of file interpolate.h.

template<class Y_type>
int interpolator<Y_type>::type_ [protected]
 

Definition at line 249 of file interpolate.h.

template<class Y_type>
bool interpolator<Y_type>::user_ls [protected]
 

Definition at line 251 of file interpolate.h.

template<class Y_type>
bool interpolator<Y_type>::user_rs [protected]
 

Definition at line 251 of file interpolate.h.


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

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7