Package org.drip.numerical.integration
Class GeneralizedMidPointQuadrature
java.lang.Object
org.drip.numerical.integration.GeneralizedMidPointQuadrature
public class GeneralizedMidPointQuadrature
extends java.lang.Object
GeneralizedMidPointQuadrature computes the R1 Numerical Estimate of a Function
Quadrature using the Generalized Mid-Point Scheme. The References are:
- Briol, F. X., C. J. Oates, M. Girolami, and M. A. Osborne (2015): Frank-Wolfe Bayesian Quadrature: Probabilistic Integration with Theoretical Guarantees arXiv
- Forsythe, G. E., M. A. Malcolm, and C. B. Moler (1977): Computer Methods for Mathematical Computation Prentice Hall Englewood Cliffs NJ
- Leader, J. J. (2004): Numerical Analysis and Scientific Computation Addison Wesley
- Stoer, J., and R. Bulirsch (1980): Introduction to Numerical Analysis Springer-Verlag New York
- Wikipedia (2019): Numerical Integration https://en.wikipedia.org/wiki/Numerical_integration
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Numerical Quadrature, Differentiation, Eigenization, Linear Algebra, and Utilities
- Package = R1 Rd Numerical Integration Schemes
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description GeneralizedMidPointQuadrature(R1ToR1 r1ToR1, int nodeCount, int seriesTermCount)
GeneralizedMidPointQuadrature Constructor -
Method Summary
Modifier and Type Method Description double
integrate(double left, double right)
Integrate the Integrand from Left Through Rightint
nodeCount()
Retrieve the Quadrature Node CountR1ToR1
r1ToR1()
Retrieve the R1 To R1 Integrandint
seriesTermCount()
Retrieve the Series Term CountMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GeneralizedMidPointQuadrature
public GeneralizedMidPointQuadrature(R1ToR1 r1ToR1, int nodeCount, int seriesTermCount) throws java.lang.ExceptionGeneralizedMidPointQuadrature Constructor- Parameters:
r1ToR1
- R1 To R1 IntegrandnodeCount
- Quadrature Node CountseriesTermCount
- Series Term Count- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
r1ToR1
Retrieve the R1 To R1 Integrand- Returns:
- The R1 To R1 Integrand
-
nodeCount
public int nodeCount()Retrieve the Quadrature Node Count- Returns:
- The Quadrature Node Count
-
seriesTermCount
public int seriesTermCount()Retrieve the Series Term Count- Returns:
- The Series Term Count
-
integrate
public double integrate(double left, double right) throws java.lang.ExceptionIntegrate the Integrand from Left Through Right- Parameters:
left
- Left Limitright
- Right Limit- Returns:
- The Integrand Quadrature
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-