Sirikata
Public Types | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes
Sirikata::SqrIntegral Class Reference

#include <SqrIntegral.hpp>

Collaboration diagram for Sirikata::SqrIntegral:

List of all members.

Public Types

typedef double result_type

Public Member Functions

 SqrIntegral (bool normalize)
double integrate (double cutoff, double flatness, const Vector3d &xymin, const Vector3d &xymax, const Vector3d &uvmin, const Vector3d &uvmax, double *error)
double computeWithGivenCutoff (int whichCutoff, const Vector3d &xymin, const Vector3d &xymax, const Vector3d &uvmin, const Vector3d &uvmax)
double computeInfiniteIntegral (int whichCutoff)
double operator() (float cutoff, float flatness, const Vector3d &xymin, const Vector3d &xymax, const Vector3d &uvmin, const Vector3d &uvmax)

Private Types

enum  { MAX_CACHE = 2 }

Static Private Member Functions

static bool approxEqual (double a, double b)

Private Attributes

double cachedCutoff [MAX_CACHE]
double cachedDimensions [MAX_CACHE][2]
double cachedFlatness [MAX_CACHE]
double infiniteIntegral [MAX_CACHE]
bool normalize
void * gsl_rng_r
void * gsl_monte_plane_state_s

Member Typedef Documentation


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
MAX_CACHE 

Constructor & Destructor Documentation

Sirikata::SqrIntegral::SqrIntegral ( bool  normalize)

Member Function Documentation

static bool Sirikata::SqrIntegral::approxEqual ( double  a,
double  b 
) [inline, static, private]
double Sirikata::SqrIntegral::computeInfiniteIntegral ( int  whichCutoff)
double Sirikata::SqrIntegral::computeWithGivenCutoff ( int  whichCutoff,
const Vector3d &  xymin,
const Vector3d &  xymax,
const Vector3d &  uvmin,
const Vector3d &  uvmax 
)
double Sirikata::SqrIntegral::integrate ( double  cutoff,
double  flatness,
const Vector3d &  xymin,
const Vector3d &  xymax,
const Vector3d &  uvmin,
const Vector3d &  uvmax,
double *  error 
)
double Sirikata::SqrIntegral::operator() ( float  cutoff,
float  flatness,
const Vector3d &  xymin,
const Vector3d &  xymax,
const Vector3d &  uvmin,
const Vector3d &  uvmax 
) [inline]

Member Data Documentation

double Sirikata::SqrIntegral::cachedCutoff[MAX_CACHE] [private]
double Sirikata::SqrIntegral::cachedDimensions[MAX_CACHE][2] [private]
double Sirikata::SqrIntegral::cachedFlatness[MAX_CACHE] [private]

Referenced by integrate(), and SqrIntegral().

Referenced by integrate(), and SqrIntegral().

double Sirikata::SqrIntegral::infiniteIntegral[MAX_CACHE] [private]

Referenced by SqrIntegral().


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