CostFunctionSettings.CostFunctionChangeWithinTolerance Method |
Calculates if the absolute value of the change in the cost function between iterations is smaller
than the
Tolerance.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic bool CostFunctionChangeWithinTolerance(
double currentCostFunctionValue,
double previousCostFunctionValue
)
Public Function CostFunctionChangeWithinTolerance (
currentCostFunctionValue As Double,
previousCostFunctionValue As Double
) As Boolean
public:
bool CostFunctionChangeWithinTolerance(
double currentCostFunctionValue,
double previousCostFunctionValue
)
member CostFunctionChangeWithinTolerance :
currentCostFunctionValue : float *
previousCostFunctionValue : float -> bool
Parameters
- currentCostFunctionValue
- Type: System.Double
The cost function value at the current iteration. - previousCostFunctionValue
- Type: System.Double
The cost function value at the previous iteration.
Return Value
Type:
Booleantrue if the cost function change is within the tolerance and
false if the cost function change is outside the tolerance.
See Also