SG++
sgpp::base::ClenshawCurtisTable Class Reference

Lookup table for 1D Clenshaw-Curtis points. More...

#include <ClenshawCurtisTable.hpp>

Public Types

typedef HashGridPoint::index_type index_type
 
typedef HashGridPoint::level_type level_type
 

Public Member Functions

double getPoint (level_type l, index_type i) const
 
double getPoint (level_type l, index_type i, index_type hInv) const
 

Static Public Member Functions

static ClenshawCurtisTablegetInstance ()
 

Static Public Attributes

static const level_type DEFAULT_MAX_LEVEL = 16
 default number of intervals More...
 

Protected Member Functions

double calculatePoint (index_type hInv, index_type i) const
 
double calculatePoint (double h, index_type i) const
 

Protected Attributes

level_type maxLevel
 maximal level More...
 
DataVector table
 lookup table More...
 

Detailed Description

Lookup table for 1D Clenshaw-Curtis points.

This class precomputes the first maxLevel levels of a 1D Clenshaw-Curtis grid to increase performance of Clenshaw-Curtis grids.

Member Typedef Documentation

Member Function Documentation

double sgpp::base::ClenshawCurtisTable::calculatePoint ( index_type  hInv,
index_type  i 
) const
inlineprotected
Parameters
hInv2^l
iindex of the grid point (can be even)

Referenced by getPoint().

double sgpp::base::ClenshawCurtisTable::calculatePoint ( double  h,
index_type  i 
) const
inlineprotected
Parameters
hstep width of the grid point (2^(-l))
iindex of the grid point (can be even)

References M_PI.

ClenshawCurtisTable & sgpp::base::ClenshawCurtisTable::getInstance ( )
static
double sgpp::base::ClenshawCurtisTable::getPoint ( level_type  l,
index_type  i,
index_type  hInv 
) const
inline
Parameters
llevel of the grid point
iindex of the grid point (can be even)
hInv2^l

References calculatePoint(), sgpp::base::DataVector::get(), maxLevel, and table.

Member Data Documentation

const level_type sgpp::base::ClenshawCurtisTable::DEFAULT_MAX_LEVEL = 16
static

default number of intervals

DataVector sgpp::base::ClenshawCurtisTable::table
protected

lookup table

Referenced by getPoint().


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