Class BaseRuleFactory<T extends java.lang.Number>

java.lang.Object
org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory<T>
Type Parameters:
T - Type of the number used to represent the points and weights of the quadrature rules.
Direct Known Subclasses:
HermiteRuleFactory, LaguerreRuleFactory, LegendreHighPrecisionRuleFactory, LegendreRuleFactory

public abstract class BaseRuleFactory<T extends java.lang.Number>
extends java.lang.Object
Base class for rules that determines the integration nodes and their weights. Subclasses must implement the computeRule method.
Since:
3.1
  • Constructor Summary

    Constructors 
    Constructor Description
    BaseRuleFactory()  
  • Method Summary

    Modifier and Type Method Description
    protected void addRule​(Pair<T[],​T[]> rule)
    Stores a rule.
    protected abstract Pair<T[],​T[]> computeRule​(int numberOfPoints)
    Computes the rule for the given order.
    Pair<double[],​double[]> getRule​(int numberOfPoints)
    Gets a copy of the quadrature rule with the given number of integration points.
    protected Pair<T[],​T[]> getRuleInternal​(int numberOfPoints)
    Gets a rule.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait