|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.math.Integration
public class Integration
The integration is realised with the fifth Gau�-Legendre-Formula.
The values C0, ..., C4 are the sampling points with the weights W0, ..., W2.
The integral is aproximated by the wheighted mean of the function values at the sampling
points. If the function is sufficient differenciable the desiered double precicion is
reached with some function calls (maximum some hundred).
| Field Summary | |
|---|---|
static int |
MAXK
maximum of the iterations |
static double |
TOL
Tollerence for the desired double precision |
| Constructor Summary | |
|---|---|
Integration()
|
|
| Method Summary | |
|---|---|
static double |
integral(IFunction f,
double a,
double b)
Integrate the function f in the interval [a..b]. |
static double |
intk(IFunction f,
double a,
double b,
int k)
function call |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double TOL
public static final int MAXK
| Constructor Detail |
|---|
public Integration()
| Method Detail |
|---|
public static double intk(IFunction f,
double a,
double b,
int k)
f - functiona - begin of the intervalb - end of the intervallk -
public static double integral(IFunction f,
double a,
double b)
f in the interval [a..b].
f - functiona - begin of the intervalb - end of the intervall
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||