Class InfinityMidPointMatrixQuadrature
java.lang.Object
com.irurueta.numerical.integration.MatrixQuadrature
com.irurueta.numerical.integration.MidPointMatrixQuadrature
com.irurueta.numerical.integration.InfinityMidPointMatrixQuadrature
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.MidPointMatrixQuadrature
listener
Fields inherited from class com.irurueta.numerical.integration.MatrixQuadrature
n
-
Constructor Summary
ConstructorsConstructorDescriptionInfinityMidPointMatrixQuadrature
(double a, double b, MatrixSingleDimensionFunctionEvaluatorListener listener) Constructor. -
Method Summary
Methods inherited from class com.irurueta.numerical.integration.MidPointMatrixQuadrature
getA, getB, getColumns, getRows, getS, next
Methods inherited from class com.irurueta.numerical.integration.MatrixQuadrature
getN
-
Constructor Details
-
InfinityMidPointMatrixQuadrature
public InfinityMidPointMatrixQuadrature(double a, double b, MatrixSingleDimensionFunctionEvaluatorListener listener) throws com.irurueta.algebra.WrongSizeException Constructor.- Parameters:
a
- Lower limit of integration.b
- Upper limit of integration.listener
- listener to evaluate a single dimension matrix function at required points.- Throws:
com.irurueta.algebra.WrongSizeException
- if size notified by provided listener is invalid.
-
-
Method Details
-
getType
Gets type of quadrature.- Overrides:
getType
in classMidPointMatrixQuadrature
- Returns:
- type of quadrature.
-
func
Evaluates function at 1/x.- Overrides:
func
in classMidPointMatrixQuadrature
- Parameters:
x
- point where function is evaluated.result
- instance where result of evaluation is stored.- Throws:
EvaluationException
- if evaluation fails.
-