Class NumericalIntegration

java.lang.Object
org.wpilib.math.autodiff.NumericalIntegration

public final class NumericalIntegration extends Object
Numerical integration utilities.
  • Method Details

    • rk4

      Performs 4th order Runge-Kutta integration of dx/dt = f(x, u) for dt.
      Parameters:
      f - The function to integrate. It must take two arguments x and u.
      x - The initial value of x.
      u - The value u held constant over the integration period.
      dt - The time over which to integrate.
      Returns:
      the integration of dx/dt = f(x, u) for dt.
    • rk4

      Performs 4th order Runge-Kutta integration of dx/dt = f(x, u) for dt.
      Parameters:
      f - The function to integrate. It must take two arguments x and u.
      x - The initial value of x.
      u - The value u held constant over the integration period.
      dt - The time over which to integrate.
      Returns:
      the integration of dx/dt = f(x, u) for dt.
    • rk4

      Performs 4th order Runge-Kutta integration of dx/dt = f(x, u) for dt.
      Parameters:
      f - The function to integrate. It must take two arguments x and u.
      x - The initial value of x.
      u - The value u held constant over the integration period.
      dt - The time over which to integrate.
      Returns:
      the integration of dx/dt = f(x, u) for dt.
    • rk4

      Performs 4th order Runge-Kutta integration of dx/dt = f(x, u) for dt.
      Parameters:
      f - The function to integrate. It must take two arguments x and u.
      x - The initial value of x.
      u - The value u held constant over the integration period.
      dt - The time over which to integrate.
      Returns:
      the integration of dx/dt = f(x, u) for dt.