1 #ifndef MATH_GaussLegendreIntegration_H 2 #define MATH_GaussLegendreIntegration_H 101 static SP::MATH_GaussLegendreIntegration
New() {
146 if (mPoints.getSize()>0)
setOrder(mPoints.get(0)->getSize());
156 return *mPoints.
get(k);
163 return *mPoints.
get(k);
170 return *mWeights.
get(k);
177 return *mWeights.
get(k);
185 if (mPoints.getSize()>0)
return mPoints.get(0)->getSize();
virtual void setBoundsCalled()
method called when intervals is modified
Definition: MATH_GaussLegendreIntegration.h:145
SP_OBJECT(MATH_GaussLegendreIntegration)
T & get(const tUIndex &i)
get the value of the array at index i
Definition: CORE_Array.h:555
#define tUSInt
Definition: types.h:28
void computeIntegrationData(const tUSInt &n, const tReal &a, const tReal &b, tReal *w, tReal *x) const
compute the integration points and weights at order n for interval [a,b]
Definition: MATH_GaussLegendreIntegration.cpp:145
virtual void copy(const MATH_Integration &integral)
copy the parameters of the optimization method
Definition: MATH_GaussLegendreIntegration.cpp:19
virtual ~MATH_GaussLegendreIntegration(void)
destroy an GaussLegendreIntegration Object.
Definition: MATH_GaussLegendreIntegration.cpp:15
static SP::MATH_GaussLegendreIntegration New()
create a copy of MATH_GaussLegendreIntegration
Definition: MATH_GaussLegendreIntegration.h:101
This class integrate function where a,b,t, in d=(1,2,3..).
Definition: MATH_GaussLegendreIntegration.h:54
CORE_Array< tReal > CORE_RealArray
Definition: CORE_Array.h:1075
virtual tReal integrate()
integrate the function in the interval
Definition: MATH_GaussLegendreIntegration.cpp:284
SV::CORE_RealArray mWeights
Definition: MATH_GaussLegendreIntegration.h:68
SV::CORE_RealArray mPoints
Definition: MATH_GaussLegendreIntegration.h:71
CORE_RealArray & getPoints(const tUIndex &k)
return the points of integration of the coordinate k
Definition: MATH_GaussLegendreIntegration.h:162
MATH_GaussLegendreIntegration(void)
create a GaussLegendreIntegration object
Definition: MATH_GaussLegendreIntegration.cpp:12
#define tUIndex
Definition: types.h:126
This class integrates integrand function MATH_IntegrandFunction where a,b,t,dt in d=(1...
Definition: MATH_Integration.h:19
void setOrder(const tUIndex &n)
set the order of integration
Definition: MATH_GaussLegendreIntegration.cpp:73
tUIndex getOrder() const
get the order of the integration
Definition: MATH_GaussLegendreIntegration.h:184
const CORE_RealArray & getPoints(const tUIndex &k) const
return the points of integration of the coordinate k
Definition: MATH_GaussLegendreIntegration.h:155
const CORE_RealArray & getWeights(const tUIndex &k) const
return the weights of integration of the coordinate k
Definition: MATH_GaussLegendreIntegration.h:169
CORE_RealArray & getWeights(const tUIndex &k)
return the points of integration of the coordinate k
Definition: MATH_GaussLegendreIntegration.h:176
DEFINE_SPTR(MATH_GaussLegendreIntegration)
#define tReal
Definition: types.h:118
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141