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: 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: 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