Package org.jreliability.evaluator
Class IntegralEvaluator
java.lang.Object
org.jreliability.evaluator.IntegralEvaluator
The
IntegralEvaluator
determines the integral of a Function
using Romberg's method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final double
The allowed error /epsilon
for Romberg's method. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs theIntegralEvaluator
with the epsilon value1.0E-8
.IntegralEvaluator
(double epsilon) Constructs theIntegralEvaluator
. -
Method Summary
-
Field Details
-
epsilon
protected final double epsilonThe allowed error /epsilon
for Romberg's method.
-
-
Constructor Details
-
IntegralEvaluator
public IntegralEvaluator()Constructs theIntegralEvaluator
with the epsilon value1.0E-8
. -
IntegralEvaluator
public IntegralEvaluator(double epsilon) Constructs theIntegralEvaluator
.- Parameters:
epsilon
- the allowed error for Romberg's method.
-
-
Method Details
-
evaluate
Calculates the integral froma
tob
.- Parameters:
f
- the function to be integrateda
- the lower boundb
- the upper bound- Returns:
- the value of the integral from
a
tob
-