FunctionMathFindMaximum(FuncDouble, Double, Double) Method

Maximizes a function in the vicinity of a given point.

Definition

Namespace: Meta.Numerics.Analysis
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static Extremum FindMaximum(
	Func<double, double> f,
	double x
)

Parameters

f  FuncDouble, Double
The function.
x  Double
A point suspected to be near the maximum. The search begins at this point.

Return Value

Extremum
The maximum.

Exceptions

ArgumentNullExceptionf is null.
NonconvergenceExceptionMore than the maximum allowed number of function evaluations occurred without a maximum being determined.

See Also