类 LegendreHighPrecisionParametricTest

java.lang.Object
org.hipparchus.analysis.integration.gauss.GaussianQuadratureAbstractTest
org.hipparchus.analysis.integration.gauss.LegendreHighPrecisionParametricTest

public class LegendreHighPrecisionParametricTest 扩展自 GaussianQuadratureAbstractTest
测试 FieldLegendreRuleFactory。这个参数化测试扩展了高斯积分规则的标准测试,其中每个单项式依次进行测试。参数化允许自动测试0、1、...、MAX_NUM_POINTS个积分规则。
  • 字段详细资料

    • MAX_NUM_POINTS

      public static final int MAX_NUM_POINTS
      要测试的最高阶数积分规则。
      另请参阅:
  • 构造器详细资料

    • LegendreHighPrecisionParametricTest

      public LegendreHighPrecisionParametricTest(int numberOfPoints, int maxDegree, double eps, double numUlps)
      创建此测试的新实例,具有指定的高斯-勒让德积分规则节点数。
      参数:
      numberOfPoints - 积分规则的阶数。
      maxDegree - 要测试的最高次单项式的阶数。
      eps - ε的值。
      numUlps - 最大相对误差值(以ulps为单位)。
  • 方法详细资料

    • getParameters

      public static Collection<Object[]> getParameters()
      返回要传递给此类构造函数的参数集合。将构造阶数为1、...、MAX_NUM_POINTS的高斯-勒让德积分规则。
      返回:
      此参数化测试的参数集合。
    • getExpectedValue

      public double getExpectedValue(int n)
      从类复制的说明: GaussianQuadratureAbstractTest
      返回指定单项式积分的预期值。在测试的积分规则的自然区间上进行积分。
      指定者:
      getExpectedValue 在类中 GaussianQuadratureAbstractTest
      参数:
      n - 单项式的阶数。
      返回:
      xn的积分的预期值。