Stokhos::KL::ExponentialOneDEigenFunction< value_type > Class Template Reference

One-dimensional eigenfunction for exponential covariance function. More...

#include <Stokhos_KL_OneDEigenPair.hpp>

Inheritance diagram for Stokhos::KL::ExponentialOneDEigenFunction< value_type >:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::KL::ExponentialOneDEigenFunction< value_type >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  TYPE { SIN, COS }
 

Enum identifying the type of eigenfunction.

More...

Public Member Functions

 ExponentialOneDEigenFunction (TYPE type_, const value_type &a_, const value_type &b_, const value_type &omega_, const std::string &dim_name_)
 Constructor.
 ~ExponentialOneDEigenFunction ()
 Destructor.
virtual value_type evaluate (const value_type &x) const
 Evaluate eigenfunction.
virtual void print (std::ostream &os) const
 Print eigenfunction.
TYPE getType () const
 Return type.
value_type getFrequency () const
 Return frequency.
value_type getMultiplier () const
 Return multiplier.
value_type getShift () const
 Get shift.

Protected Attributes

TYPE type
 Type of eigenfunction (sin or cos).
value_type a
 Domain length.
value_type b
 Domain center.
value_type A
 Multiplier for eigenfunction.
value_type omega
 Frequency of eigenfunction.
std::string dim_name
 Dimesion name (e.g., x_1) for printing eigenfunction.

Detailed Description

template<typename value_type>
class Stokhos::KL::ExponentialOneDEigenFunction< value_type >

One-dimensional eigenfunction for exponential covariance function.

Represents an eigenfunction of the form $A \sin(\omega (x-(b+a)/2))$ or $A \cos(\omega (x-(b+a)/2))$ over the domain $[a,b]$ where

\[ A = \frac{1}{\sqrt{\frac{b-a}{2} \pm \frac{\sin(\omega(b-a)}{2\omega}}} \]

for $\cos$, $\sin$ respectively.


Member Enumeration Documentation

template<typename value_type >
enum Stokhos::KL::ExponentialOneDEigenFunction::TYPE

Enum identifying the type of eigenfunction.

Enumerator:
SIN 

A*sin(omega*(x-b)).

COS 

A*cos(omega*(x-b)).


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Generated on Wed Apr 13 09:58:15 2011 for Stokhos by  doxygen 1.6.3