public abstract class NumericalIntegration
extends java.lang.Object
Constructor and Description |
---|
NumericalIntegration(boolean diagonalWeights) |
NumericalIntegration(boolean diagonalWeights,
int minN,
int maxN) |
NumericalIntegration(boolean diagonalWeights,
int minN,
int maxN,
double threshold) |
Modifier and Type | Method and Description |
---|---|
abstract double |
f(double u,
double v)
abstract method to evaluate the function to be integrated
|
int |
getMaxN()
gets the maximum number of terms in the integration sum (default 10000)
|
int |
getMinN() |
double |
getThreshold() |
double |
integrate() |
double |
integrate(int n)
performs an integration with a given index
|
void |
setMaxN(int maxN)
sets the max number of terms in the integration sum (default 10000)
|
void |
setMinN(int minN) |
void |
setThreshold(double tiny) |
public NumericalIntegration(boolean diagonalWeights)
public NumericalIntegration(boolean diagonalWeights, int minN, int maxN)
public NumericalIntegration(boolean diagonalWeights, int minN, int maxN, double threshold)
public abstract double f(double u, double v)
u
- one coordinatev
- anotherpublic double integrate()
public double integrate(int n)
n
- the index of the integrationpublic int getMaxN()
public void setMaxN(int maxN)
maxN
- The maxN to set.public double getThreshold()
public void setThreshold(double tiny)
tiny
- The new conversion thresholdpublic int getMinN()
public void setMinN(int minN)
minN
- The minN to set.