Click or drag to resize

FunctionMathFindMaximum Method (FuncDouble, Double, Double)

Maximizes a function in the vicinity of a given point.

Namespace:  Meta.Numerics.Analysis
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static Extremum FindMaximum(
	Func<double, double> f,
	double x
)

Parameters

f
Type: SystemFuncDouble, Double
The function.
x
Type: SystemDouble
A point suspected to be near the maximum. The search begins at this point.

Return Value

Type: Extremum
The maximum.
Exceptions
ExceptionCondition
ArgumentNullExceptionf is null.
NonconvergenceExceptionMore than the maximum allowed number of function evaluations occurred without a maximum being determined.
See Also