Interface RuleFactory

All Known Implementing Classes:
AbstractRuleFactory, ConvertingRuleFactory, HermiteRuleFactory, LaguerreRuleFactory, LegendreRuleFactory

public interface RuleFactory
Interface for rules that determines the integration nodes and their weights.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Pair<double[],double[]>
    getRule(int numberOfPoints)
    Gets a copy of the quadrature rule with the given number of integration points.
  • Method Details

    • getRule

      Pair<double[],double[]> getRule(int numberOfPoints) throws MathIllegalArgumentException
      Gets a copy of the quadrature rule with the given number of integration points. The number of points is arbitrarily limited to 1000. It prevents resources exhaustion. In practice the number of points is often much lower.
      Parameters:
      numberOfPoints - Number of integration points.
      Returns:
      a copy of the integration rule.
      Throws:
      MathIllegalArgumentException - if numberOfPoints < 1.
      MathIllegalArgumentException - if numberOfPoints > 1000.
      MathIllegalArgumentException - if the elements of the rule pair do not have the same length.