File indexing completed on 2025-01-18 10:04:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _math_KronrodSingleIntegration_HeaderFile
0017 #define _math_KronrodSingleIntegration_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021
0022 #include <Standard_Integer.hxx>
0023 #include <math_Vector.hxx>
0024 class math_Function;
0025
0026
0027
0028
0029 class math_KronrodSingleIntegration
0030 {
0031 public:
0032
0033 DEFINE_STANDARD_ALLOC
0034
0035
0036
0037 Standard_EXPORT math_KronrodSingleIntegration();
0038
0039
0040
0041 Standard_EXPORT math_KronrodSingleIntegration(math_Function& theFunction, const Standard_Real theLower, const Standard_Real theUpper, const Standard_Integer theNbPnts);
0042
0043
0044
0045
0046
0047 Standard_EXPORT math_KronrodSingleIntegration(math_Function& theFunction, const Standard_Real theLower, const Standard_Real theUpper, const Standard_Integer theNbPnts, const Standard_Real theTolerance, const Standard_Integer theMaxNbIter);
0048
0049
0050
0051
0052
0053
0054 Standard_EXPORT void Perform (math_Function& theFunction, const Standard_Real theLower, const Standard_Real theUpper, const Standard_Integer theNbPnts);
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065 Standard_EXPORT void Perform (math_Function& theFunction, const Standard_Real theLower, const Standard_Real theUpper, const Standard_Integer theNbPnts, const Standard_Real theTolerance, const Standard_Integer theMaxNbIter);
0066
0067
0068
0069 Standard_Boolean IsDone() const;
0070
0071
0072 Standard_Real Value() const;
0073
0074
0075 Standard_Real ErrorReached() const;
0076
0077
0078 Standard_Real AbsolutError() const;
0079
0080
0081
0082 Standard_Integer OrderReached() const;
0083
0084
0085
0086 Standard_Integer NbIterReached() const;
0087
0088 Standard_EXPORT static Standard_Boolean GKRule (math_Function& theFunction, const Standard_Real theLower, const Standard_Real theUpper, const math_Vector& theGaussP, const math_Vector& theGaussW, const math_Vector& theKronrodP, const math_Vector& theKronrodW, Standard_Real& theValue, Standard_Real& theError);
0089
0090
0091
0092
0093 protected:
0094
0095
0096
0097
0098
0099 private:
0100
0101
0102
0103 Standard_Boolean myIsDone;
0104 Standard_Real myValue;
0105 Standard_Real myErrorReached;
0106 Standard_Real myAbsolutError;
0107 Standard_Integer myNbPntsReached;
0108 Standard_Integer myNbIterReached;
0109
0110
0111 };
0112
0113
0114 #include <math_KronrodSingleIntegration.lxx>
0115
0116
0117
0118
0119
0120 #endif