NumericalIntegratorND.Integrate Method

Definition

Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Integrate() Numerically integrates a function of one variable.
Integrate(ParallelOptions) Numerically integrates a function of one variable.
Integrate(Vector<Double>, Vector<Double>) Numerically integrates a function of one variable.
Integrate(Func<Vector<Double>, Double>, Vector<Double>, Vector<Double>) Numerically integrates a function of one variable.
Integrate(Vector<Double>, Vector<Double>, ParallelOptions) Numerically integrates a function of one variable.
Integrate(Func<Vector<Double>, Double>, Vector<Double>, Vector<Double>, ParallelOptions) Numerically integrates a function of one variable.

Integrate

Numerically integrates a function of one variable.
C#
public double Integrate()

Return Value

Double
An 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

DimensionMismatchException

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)

Numerically integrates a function of one variable.
C#
public double Integrate(
	ParallelOptions parallelOptions
)

Parameters

parallelOptions  ParallelOptions
A ParallelOptions value that specifies the parallel behavior of the algorithm.

Return Value

Double
An 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

DimensionMismatchException

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>)

Numerically integrates a function of one variable.
C#
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

Double
An 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

ArgumentNullException

lowerBounds is null.

-or-

upperBounds is null.

DimensionMismatchException

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>)

Numerically integrates a function of one variable.
C#
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

Double
An 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

ArgumentNullException

integrand is null.

-or-

lowerBounds is null.

-or-

upperBounds is null.

DimensionMismatchException

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)

Numerically integrates a function of one variable.
C#
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

Double
An 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

ArgumentNullException

lowerBounds is null.

-or-

upperBounds is null.

DimensionMismatchException

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)

Numerically integrates a function of one variable.
C#
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

Double
An 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

ArgumentNullException

integrand is null.

-or-

lowerBounds is null.

-or-

upperBounds is null.

DimensionMismatchException

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.

See Also