接口 UnivariateIntegrator

所有已知实现类:
BaseAbstractUnivariateIntegrator, IterativeLegendreGaussIntegrator, MidPointIntegrator, RombergIntegrator, SimpsonIntegrator, TrapezoidIntegrator

public interface UnivariateIntegrator
一维实数积分算法的接口。
  • 方法详细资料

    • getRelativeAccuracy

      double getRelativeAccuracy()
      获取相对精度。
      返回:
      精度
    • getAbsoluteAccuracy

      double getAbsoluteAccuracy()
      获取绝对精度。
      返回:
      精度
    • getMinimalIterationCount

      int getMinimalIterationCount()
      获取迭代次数的最小限制。
      返回:
      实际最小限制
    • getMaximalIterationCount

      int getMaximalIterationCount()
      获取迭代次数的上限。
      返回:
      实际上限
    • integrate

      double integrate(int maxEval, UnivariateFunction f, double min, double max) throws MathIllegalArgumentException, MathIllegalStateException, NullArgumentException
      在给定区间内对函数进行积分。
      参数:
      maxEval - 最大评估次数。
      f - 被积函数
      min - 区间下限
      max - 区间上限
      返回:
      积分值
      抛出:
      MathIllegalStateException - 如果超过最大函数评估次数
      MathIllegalStateException - 如果超过最大迭代次数或积分器检测到收敛问题
      MathIllegalArgumentException - 如果min > max或端点不满足积分器指定的要求
      NullArgumentException - 如果fnull
    • getEvaluations

      int getEvaluations()
      获取积分器最后一次运行的函数评估次数。
      返回:
      函数评估次数
    • getIterations

      int getIterations()
      获取积分器最后一次运行的迭代次数。
      返回:
      迭代次数