Class InfinityMidPointQuadrature
java.lang.Object
com.irurueta.numerical.integration.Quadrature
com.irurueta.numerical.integration.MidPointQuadrature
com.irurueta.numerical.integration.InfinityMidPointQuadrature
This is an exact replacement for MidPointQuadrature i.e., returns the nth stage of refinement of
the integral of a function from "a" to "b", except that the function is evaluated at evenly spaced
points in 1=x rather than in x. This allows the upper limit "b" to be as large and positive as the
computer allows, or the lower limit "a" to be as large and negative, but not both. "a" and "b" must
have the same sign.
-
Field Summary
Fields inherited from class com.irurueta.numerical.integration.MidPointQuadrature
listener
Fields inherited from class com.irurueta.numerical.integration.Quadrature
n
-
Constructor Summary
ConstructorsConstructorDescriptionInfinityMidPointQuadrature
(double a, double b, SingleDimensionFunctionEvaluatorListener listener) Constructor. -
Method Summary
Methods inherited from class com.irurueta.numerical.integration.MidPointQuadrature
getA, getB, getS, next
Methods inherited from class com.irurueta.numerical.integration.Quadrature
getN
-
Constructor Details
-
InfinityMidPointQuadrature
public InfinityMidPointQuadrature(double a, double b, SingleDimensionFunctionEvaluatorListener listener) Constructor.- Parameters:
a
- Lower limit of integration.b
- Upper limit of integration.listener
- listener to evaluate a single dimension function at required points.
-
-
Method Details
-
getType
Gets type of quadrature.- Overrides:
getType
in classMidPointQuadrature
- Returns:
- type of quadrature.
-
func
Evaluates function at 1/x.- Overrides:
func
in classMidPointQuadrature
- Parameters:
x
- point where function is evaluated.- Returns:
- result of evaluation.
- Throws:
EvaluationException
- if evaluation fails.
-