Package org.hipparchus.complex
Class ComplexUnivariateIntegrator
- java.lang.Object
-
- org.hipparchus.complex.ComplexUnivariateIntegrator
-
public class ComplexUnivariateIntegrator extends Object
Wrapper to perform univariate complex integration using an underlying real integration algorithms.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ComplexUnivariateIntegrator(UnivariateIntegrator integrator)
Crate a complex integrator from a real integrator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Complex
integrate(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex end)
Integrate a function along a straight path between points.Complex
integrate(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex... path)
Integrate a function along a polyline path between any number of points.
-
-
-
Constructor Detail
-
ComplexUnivariateIntegrator
public ComplexUnivariateIntegrator(UnivariateIntegrator integrator)
Crate a complex integrator from a real integrator.- Parameters:
integrator
- underlying real integrator to use
-
-
Method Detail
-
integrate
public Complex integrate(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex end)
Integrate a function along a straight path between points.- Parameters:
maxEval
- maximum number of evaluations (real and imaginary parts are evaluated separately, so up to twice this number may be used)f
- the integrand functionstart
- start point of the integration pathend
- end point of the integration path- Returns:
- the value of integral along the straight path
-
integrate
public Complex integrate(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex... path)
Integrate a function along a polyline path between any number of points.- Parameters:
maxEval
- maximum number of evaluations (real and imaginary parts are evaluated separately and each path segments are also evaluated separately, so up to 2n times this number may be used for n segments)f
- the integrand functionstart
- start point of the integration pathpath
- successive points defining the path vertices- Returns:
- the value of integral along the polyline path
-
-