numRecipes
public class Integration extends java.lang.Object
Constructor and 説明 |
---|
Integration() |
Modifier and Type | Method and 説明 |
---|---|
static void |
initializeStaticVariables()
Initialize the static variables such as grandSum.
|
static double |
iterateTrapzd(Function func,
int functionIndex,
double[] parameters,
double lowerBound,
double upperBound,
int iterationTimes)
Iterated Trapzd integraion method.
|
static double |
RombergIntegral(Function func,
int functionIndex,
double[] parameters,
double lowerBound,
double upperBound)
The Romberg method.
|
static void |
setRelativeAccuracy(double epsilon)
Change the relative accuracy in the inegration
|
static double |
trapzd(Function func,
int functionIndex,
double[] parameters,
double lowerBound,
double upperBound,
int iterationTimes)
Trapzd integraion method.
|
public static double trapzd(Function func, int functionIndex, double[] parameters, double lowerBound, double upperBound, int iterationTimes)
public static double iterateTrapzd(Function func, int functionIndex, double[] parameters, double lowerBound, double upperBound, int iterationTimes)
public static double RombergIntegral(Function func, int functionIndex, double[] parameters, double lowerBound, double upperBound)
public static void initializeStaticVariables()
public static void setRelativeAccuracy(double epsilon)