I'm working on a cumulative distribution function and I need to be able to solve integrals in Java.
I've already tried Math3 in Apache Commons, but I cannot figure that out either.
The type of integral I need to solve is for an Integral from a lower bound to an upper bound, and I need it to integrate for a variable, say 'T'.
The rest I can figure out, like using the variable in an equation. But when I tried the Simpson Integration from Math3 there were either 2 parameters or 4 parameters in the constructors. Using these:
// Construct an integrator with default settings.
SimpsonIntegrator()
// Build a Simpson integrator with given accuracies and iterations counts.
SimpsonIntegrator(double relativeAccuracy, double absoluteAccuracy,
int minimalIterationCount, int maximalIterationCount)
// Build a Simpson integrator with given iteration counts.
SimpsonIntegrator(int minimalIterationCount, int maximalIterationCount)
I also don't know what it means by the accuracy. And I'm not very good at Integrals, because I'm just using it for an equation to put on my calculator on the google play store.