Class Integration

java.lang.Object
ffx.numerics.integrate.Integration

public class Integration extends Object
This program integrates using three methods: the trapezoidal method, Simpson's Three Point Integration, and Boole's Five Point Integration
Author:
Claire O'Connell
  • Method Details

    • averageIntegral

      public static double averageIntegral(double leftInt, double rightInt)
      averageIntegral.
      Parameters:
      leftInt - a double.
      rightInt - a double.
      Returns:
      a double.
    • generateTestData_v1

      public static double[] generateTestData_v1()
      generateTestData_v1.
      Returns:
      an array of
      invalid reference
      double
      objects.
    • halfBinComposite

      public static double halfBinComposite(double[] inputData, int mode, String side)
      halfBinComposite.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      mode - the integration mode.
      side - a String object.
      Returns:
      a double.
    • leftBoole

      public static double leftBoole(double[] inputData)
      leftBoole.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • leftRectangularMethod

      public static double leftRectangularMethod(double[] inputData)
      leftRectangularMethod.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • leftSimpsons

      public static double leftSimpsons(double[] inputData)
      leftSimpsons.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • leftTrapInput

      public static double leftTrapInput(double[] inputData)
      leftTrapInput.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • main

      public static void main(String[] args)
      main.
      Parameters:
      args - an array of String objects.
    • rightBoole

      public static double rightBoole(double[] inputData)
      rightBoole.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • rightRectangularMethod

      public static double rightRectangularMethod(double[] inputData)
      rightRectangularMethod.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • rightSimpsons

      public static double rightSimpsons(double[] inputData)
      rightSimpsons.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.
    • rightTrapInput

      public static double rightTrapInput(double[] inputData)
      rightTrapInput.
      Parameters:
      inputData - an array of
      invalid reference
      double
      objects.
      Returns:
      a double.