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 doubleThe allowed error /epsilonfor Romberg's method. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs theIntegralEvaluatorwith the epsilon value1.0E-8.IntegralEvaluator(double epsilon) Constructs theIntegralEvaluator. -
Method Summary
-
Field Details
-
epsilon
protected final double epsilonThe allowed error /epsilonfor Romberg's method.
-
-
Constructor Details
-
IntegralEvaluator
public IntegralEvaluator()Constructs theIntegralEvaluatorwith 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 fromatob.- Parameters:
f- the function to be integrateda- the lower boundb- the upper bound- Returns:
- the value of the integral from
atob
-