Class Quadrature

java.lang.Object
com.irurueta.numerical.integration.Quadrature
Direct Known Subclasses:
DoubleExponentialRuleQuadrature, MidPointQuadrature, TrapezoidalQuadrature

public abstract class Quadrature extends Object
Abstract base class for elementary quadrature algorithms used for function integration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
    Current level of refinement.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets current level of refinement.
    Gets type of quadrature.
    abstract double
    Returns the value of the integral at the nth stage of refinement.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • n

      protected int n
      Current level of refinement.
  • Constructor Details

    • Quadrature

      public Quadrature()
  • Method Details

    • getN

      public int getN()
      Gets current level of refinement.
      Returns:
      current level of refinement.
    • next

      public abstract double next() throws EvaluationException
      Returns the value of the integral at the nth stage of refinement.
      Returns:
      the value of the integral at the nth stage of refinement.
      Throws:
      EvaluationException - Raised if something failed during the evaluation.
    • getType

      public abstract QuadratureType getType()
      Gets type of quadrature.
      Returns:
      type of quadrature.