Click or drag to resize

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)
Syntax
public bool CostFunctionChangeWithinTolerance(
	double currentCostFunctionValue,
	double previousCostFunctionValue
)

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: Boolean
true if the cost function change is within the tolerance and false if the cost function change is outside the tolerance.
See Also