Class FieldGaussIntegrator<T extends CalculusFieldElement<T>>

java.lang.Object
org.hipparchus.analysis.integration.gauss.FieldGaussIntegrator<T>
Type Parameters:
T - Type of the field elements.
Direct Known Subclasses:
SymmetricFieldGaussIntegrator

public class FieldGaussIntegrator<T extends CalculusFieldElement<T>> extends Object
Class that implements the Gaussian rule for integrating a weighted function.
Since:
2.0
  • Constructor Details

  • Method Details

    • integrate

      public T integrate(CalculusFieldUnivariateFunction<T> f)
      Returns an estimate of the integral of f(x) * w(x), where w is a weight function that depends on the actual flavor of the Gauss integration scheme. The algorithm uses the points and associated weights, as passed to the constructor.
      Parameters:
      f - Function to integrate.
      Returns:
      the integral of the weighted function.
    • getNumberOfPoints

      public int getNumberOfPoints()
      Get order of the integration rule.
      Returns:
      the order of the integration rule (the number of integration points).
    • getPoint

      public T getPoint(int index)
      Gets the integration point at the given index. The index must be in the valid range but no check is performed.
      Parameters:
      index - index of the integration point
      Returns:
      the integration point.
    • getWeight

      public T getWeight(int index)
      Gets the weight of the integration point at the given index. The index must be in the valid range but no check is performed.
      Parameters:
      index - index of the integration point
      Returns:
      the weight.