Class MatrixQuadrature

java.lang.Object
com.irurueta.numerical.integration.MatrixQuadrature
Direct Known Subclasses:
DoubleExponentialRuleMatrixQuadrature, MidPointMatrixQuadrature, TrapezoidalMatrixQuadrature

public abstract class MatrixQuadrature extends Object
Abstract base class for elementary matrix quadrature algorithms used for matrix (multivariate) single dimension 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
    protected abstract int
    Gets number of columns of quadrature result.
    int
    Gets current level of refinement.
    protected abstract int
    Gets number of rows of quadrature result.
    Gets type of quadrature.
    abstract void
    next(com.irurueta.algebra.Matrix result)
    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

    • MatrixQuadrature

      public MatrixQuadrature()
  • Method Details

    • getN

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

      public abstract void next(com.irurueta.algebra.Matrix result) throws EvaluationException
      Returns the value of the integral at the nth stage of refinement.
      Parameters:
      result - instance where the value of the integral at the nth stage of refinement will be stored.
      Throws:
      EvaluationException - Raised if something failed during the evaluation.
    • getType

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

      protected abstract int getRows()
      Gets number of rows of quadrature result.
      Returns:
      number of rows of quadrature result.
    • getColumns

      protected abstract int getColumns()
      Gets number of columns of quadrature result.
      Returns:
      number of columns of quadrature result.