herschel.ia.toolbox.spectrum.operations.segments.resampling
public class EulerIntegrator extends java.lang.Object implements SpectrumIntegrator
| Constructor and Description |
|---|
EulerIntegrator() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
createMidpointGrid(double[] grid) |
double |
getIntegral(double min,
double max)
Compute the integral over the interval [min,max].
|
void |
setData(double[] x,
double[] y)
Initialize the data grid which defines the function to be integrated.
|
public void setData(double[] x,
double[] y)
setData in interface SpectrumIntegratorpublic double getIntegral(double min,
double max)
getIntegral in interface SpectrumIntegratorpublic static double[] createMidpointGrid(double[] grid)