Click or drag to resize
Accord.NET (logo)

MonteCarloIntegrationIntegrate Method (FuncDouble, Double, Double, Double, Int32)

Computes the area of the function under the selected Range. The computed value will be available at this object's Area.

Namespace:  Accord.Math.Integration
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double Integrate(
	Func<double[], double> func,
	double[] a,
	double[] b,
	int samples
)
Request Example View Source

Parameters

func
Type: SystemFuncDouble, Double
a
Type: SystemDouble
b
Type: SystemDouble
samples
Type: SystemInt32

Return Value

Type: Double
True if the integration method succeeds, false otherwise.
See Also