Class IntegralEvaluator

java.lang.Object
org.jreliability.evaluator.IntegralEvaluator

public class IntegralEvaluator extends Object
The IntegralEvaluator determines the integral of a Function using Romberg's method.
  • Field Details

    • epsilon

      protected final double epsilon
      The allowed error / epsilon for Romberg's method.
  • Constructor Details

    • IntegralEvaluator

      public IntegralEvaluator()
      Constructs the IntegralEvaluator with the epsilon value 1.0E-8.
    • IntegralEvaluator

      public IntegralEvaluator(double epsilon)
      Constructs the IntegralEvaluator.
      Parameters:
      epsilon - the allowed error for Romberg's method.
  • Method Details

    • evaluate

      public double evaluate(Function f, double a, double b)
      Calculates the integral from a to b.
      Parameters:
      f - the function to be integrated
      a - the lower bound
      b - the upper bound
      Returns:
      the value of the integral from a to b