public class DelegatedBivariateIntegrator extends Object implements BivariateIntegrator
Constructor and Description |
---|
DelegatedBivariateIntegrator(UnivariateIntegrator integratorXIn,
UnivariateIntegrator integratorYIn)
Build a bivariate integrator with the two specified univariate
integrators.
|
Modifier and Type | Method and Description |
---|---|
int |
getEvaluations()
Returns the number of function evaluations made during the last run of
the integrator.
|
BivariateFunction |
getFunction()
Returns the function used during the last run of the integrator.
|
UnivariateIntegrator |
getIntegratorX()
Gets the univariate integrator associated to the 1st axis.
|
UnivariateIntegrator |
getIntegratorY()
Gets the univariate integrator associated to the 2nd axis.
|
int |
getMaxEvaluations()
Returns the maximal number of function evaluations authorized during the
last run of the integrator.
|
double |
getXMax()
Returns the upper bounds on x used during the last call to this
integrator.
|
double |
getXMin()
Returns the lower bounds on x used during the last call to this
integrator.
|
double |
getYMax()
Returns the upper bounds on y used during the last call to this
integrator.
|
double |
getYMin()
Returns the lower bounds on y used during the last call to this
integrator.
|
double |
integrate(int maxEval,
BivariateFunction f,
double xminIn,
double xmaxIn,
double yminIn,
double ymaxIn)
Integrates the function on the specified domain.
|
protected void |
setup(int maxEval,
BivariateFunction f,
double xminIn,
double xmaxIn,
double yminIn,
double ymaxIn)
Prepares for computation.
|
public DelegatedBivariateIntegrator(UnivariateIntegrator integratorXIn, UnivariateIntegrator integratorYIn)
integratorXIn
- integrator along 1st variableintegratorYIn
- integrator along 2nd variableprotected void setup(int maxEval, BivariateFunction f, double xminIn, double xmaxIn, double yminIn, double ymaxIn)
solve
methods.maxEval
- the maximum number of evaluations.f
- the objective functionxminIn
- lower x boundxmaxIn
- upper x boundyminIn
- lower y boundymaxIn
- upper y boundNullArgumentException
- if f
is null
.public double integrate(int maxEval, BivariateFunction f, double xminIn, double xmaxIn, double yminIn, double ymaxIn)
integrate
in interface BivariateIntegrator
maxEval
- the maximum number of evaluationsf
- the integrand functionxminIn
- the lower bound of the interval for the 1st axisxmaxIn
- the upper bound of the interval for the 1st axisyminIn
- the lower bound of the interval for the 2nd axisymaxIn
- the upper bound of the interval for the 2nd axispublic UnivariateIntegrator getIntegratorX()
public UnivariateIntegrator getIntegratorY()
public BivariateFunction getFunction()
getFunction
in interface BivariateIntegrator
public int getEvaluations()
getEvaluations
in interface BivariateIntegrator
public int getMaxEvaluations()
getMaxEvaluations
in interface BivariateIntegrator
public double getXMin()
getXMin
in interface BivariateIntegrator
public double getXMax()
getXMax
in interface BivariateIntegrator
public double getYMin()
getYMin
in interface BivariateIntegrator
public double getYMax()
getYMax
in interface BivariateIntegrator
Copyright © 2019 CNES. All rights reserved.