Click or drag to resize

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

Parameters

currentCostFunctionValue
Type: SystemDouble
The cost function value at the current iteration.
previousCostFunctionValue
Type: SystemDouble
The cost function value at the previous iteration.

Return Value

Type: Boolean
if the cost function change is within the tolerance and if the cost function change is outside the tolerance.
See Also