Numerical Integrator ND.Integrate Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Integrate() | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate
public double Integrate()
Return Value
DoubleAn approximation of the definite integral for the integrator's current Integrand over the region specified by LowerBounds and UpperBounds. .
Remarks
This method performs the actual numerical integration using the Integrand and integration region with bounds specified by the LowerBounds and UpperBounds properties. After this method returns, inspect the Status property to verify that the algorithm terminated normally.
Exceptions
Dimension | The length of is not equal to the length of . -or- The length of and is not equal to the number of parameters of the Integrand. |
Integrate(ParallelOptions)
public double Integrate(
ParallelOptions parallelOptions
)
Parameters
- parallelOptions ParallelOptions
- A ParallelOptions value that specifies the parallel behavior of the algorithm.
Return Value
DoubleAn approximation of the definite integral for the integrator's current Integrand over the region specified by LowerBounds and UpperBounds. .
Remarks
This method performs the actual numerical integration using the Integrand and integration region with bounds specified by the LowerBounds and UpperBounds properties. After this method returns, inspect the Status property to verify that the algorithm terminated normally.
Exceptions
Dimension | The length of is not equal to the length of . -or- The length of and is not equal to the number of parameters of the Integrand. |
Integrate(Vector<Double>, Vector<Double>)
public double Integrate(
Vector<double> lowerBounds,
Vector<double> upperBounds
)
Parameters
- lowerBounds Vector<Double>
- A vector containing the lower bounds of the integration region.
- upperBounds Vector<Double>
- A vector containing the upper bounds of the integration region.
Return Value
DoubleAn approximation of the definite integral of over a region with lower bounds specified by lowerBounds and upper bounds specified by upperBounds.
Remarks
This method performs the actual numerical integration. After this method returns, inspect the Status property to verify that the algorithm terminated normally.
Exceptions
Argument | lowerBounds is null. -or- upperBounds is null. |
Dimension | The length of lowerBounds is not equal to the length of upperBounds. -or- The length of lowerBounds and upperBounds is not equal to the number of parameters of the Integrand. |
Integrate(Func<Vector<Double>, Double>, Vector<Double>, Vector<Double>)
public double Integrate(
Func<Vector<double>, double> integrand,
Vector<double> lowerBounds,
Vector<double> upperBounds
)
Parameters
- integrand Func<Vector<Double>, Double>
- A multivariate function that specifies the function to integrate.
- lowerBounds Vector<Double>
- A vector containing the lower bounds of the integration region.
- upperBounds Vector<Double>
- A vector containing the upper bounds of the integration region.
Return Value
DoubleAn approximation of the definite integral of integrand over a region with lower bounds specified by lowerBounds and upper bounds specified by upperBounds.
Remarks
This method performs the actual numerical integration. After this method returns, inspect the Status property to verify that the algorithm terminated normally.
Exceptions
Argument | integrand is null. -or- lowerBounds is null. -or- upperBounds is null. |
Dimension | The length of lowerBounds is not equal to the length of upperBounds. -or- The length of lowerBounds and upperBounds is not equal to the number of parameters of the Integrand. |
Integrate(Vector<Double>, Vector<Double>, ParallelOptions)
public double Integrate(
Vector<double> lowerBounds,
Vector<double> upperBounds,
ParallelOptions parallelOptions
)
Parameters
- lowerBounds Vector<Double>
- A vector containing the lower bounds of the integration region.
- upperBounds Vector<Double>
- A vector containing the upper bounds of the integration region.
- parallelOptions ParallelOptions
- A ParallelOptions value that specifies the parallel behavior of the algorithm.
Return Value
DoubleAn approximation of the definite integral of over a region with lower bounds specified by lowerBounds and upper bounds specified by upperBounds.
Remarks
This method performs the actual numerical integration. After this method returns, inspect the Status property to verify that the algorithm terminated normally.
Exceptions
Argument | lowerBounds is null. -or- upperBounds is null. |
Dimension | The length of lowerBounds is not equal to the length of upperBounds. -or- The length of lowerBounds and upperBounds is not equal to the number of parameters of the Integrand. |
Integrate(Func<Vector<Double>, Double>, Vector<Double>, Vector<Double>, ParallelOptions)
public double Integrate(
Func<Vector<double>, double> integrand,
Vector<double> lowerBounds,
Vector<double> upperBounds,
ParallelOptions parallelOptions
)
Parameters
- integrand Func<Vector<Double>, Double>
- A multivariate function that specifies the function to integrate.
- lowerBounds Vector<Double>
- A vector containing the lower bounds of the integration region.
- upperBounds Vector<Double>
- A vector containing the upper bounds of the integration region.
- parallelOptions ParallelOptions
- A ParallelOptions value that specifies the parallel behavior of the algorithm.
Return Value
DoubleAn approximation of the definite integral of integrand over a region with lower bounds specified by lowerBounds and upper bounds specified by upperBounds.
Remarks
This method performs the actual numerical integration. After this method returns, inspect the Status property to verify that the algorithm terminated normally.
Exceptions
Argument | integrand is null. -or- lowerBounds is null. -or- upperBounds is null. |
Dimension | The length of lowerBounds is not equal to the length of upperBounds. -or- The length of lowerBounds and upperBounds is not equal to the number of parameters of the Integrand. |