Package ffx.numerics.integrate
Class Integration
java.lang.Object
ffx.numerics.integrate.Integration
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 Summary
Modifier and TypeMethodDescriptionstatic double
averageIntegral
(double leftInt, double rightInt) averageIntegral.static double[]
generateTestData_v1.static double
halfBinComposite
(double[] inputData, int mode, String side) halfBinComposite.static double
leftBoole
(double[] inputData) leftBoole.static double
leftRectangularMethod
(double[] inputData) leftRectangularMethod.static double
leftSimpsons
(double[] inputData) leftSimpsons.static double
leftTrapInput
(double[] inputData) leftTrapInput.static void
main.static double
rightBoole
(double[] inputData) rightBoole.static double
rightRectangularMethod
(double[] inputData) rightRectangularMethod.static double
rightSimpsons
(double[] inputData) rightSimpsons.static double
rightTrapInput
(double[] inputData) rightTrapInput.
-
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
-
halfBinComposite
halfBinComposite.- Parameters:
inputData
- an array ofinvalid reference
double
mode
- the integration mode.side
- aString
object.- Returns:
- a double.
-
leftBoole
public static double leftBoole(double[] inputData) leftBoole.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
leftRectangularMethod
public static double leftRectangularMethod(double[] inputData) leftRectangularMethod.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
leftSimpsons
public static double leftSimpsons(double[] inputData) leftSimpsons.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
leftTrapInput
public static double leftTrapInput(double[] inputData) leftTrapInput.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
main
main.- Parameters:
args
- an array ofString
objects.
-
rightBoole
public static double rightBoole(double[] inputData) rightBoole.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
rightRectangularMethod
public static double rightRectangularMethod(double[] inputData) rightRectangularMethod.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
rightSimpsons
public static double rightSimpsons(double[] inputData) rightSimpsons.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-
rightTrapInput
public static double rightTrapInput(double[] inputData) rightTrapInput.- Parameters:
inputData
- an array ofinvalid reference
double
- Returns:
- a double.
-