Minimizes a function in the vicinity of a given point.
Namespace:
Meta.Numerics.FunctionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public static LineExtremum FindMinimum( Function<double, double> f, double x )
Public Shared Function FindMinimum ( _ f As Function(Of Double, Double), _ x As Double _ ) As LineExtremum
public: static LineExtremum^ FindMinimum( Function<double, double>^ f, double x )
Parameters
- x
- Double
A point suspected to be near the minimum; the search begins at this point.
Return Value
The minimum.
Remarks
Since the search algorithm begins by evaluating f near x, it can fail if x is near a singularity or other point at which the evaluation of f could fail. If you can reliably bracket a minimum, the other overload of this method is safer and, if your bracket is any good, slightly faster.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | f is null. |