Click or drag to resize

ThresholdStoppingConditionConstraintEvaluator.SimpleCheck Method

Performs a simple check of the currentValue against a threshold and tolerance, using the useAbsoluteValue and inequalityCriteria to determine if this constraint is satisfied by the currentValue. This method can be called by IsConstraintSatisfied(ITimeBasedState) if your constraint is simply computing a value to be compared to a threshold.

Namespace:  AGI.Foundation.StoppingConditions
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static bool SimpleCheck(
	double currentValue,
	double threshold,
	double tolerance,
	bool useAbsoluteValue,
	InequalityCondition inequalityCriteria,
	double smallestValue,
	double largestValue
)

Parameters

currentValue
Type: System.Double
The current computed value.
threshold
Type: System.Double
The threshold.
tolerance
Type: System.Double
The tolerance.
useAbsoluteValue
Type: System.Boolean
Whether or not the absolute value of the currentValue should be used when determining if the constraint is satisfied.
inequalityCriteria
Type: AGI.Foundation.StoppingConditions.InequalityCondition
The InequalityCondition that should be used to compare the currentValue to the threshold.
smallestValue
Type: System.Double
The smallest value that has been computed up to this point.
largestValue
Type: System.Double
The largest value that has been computed up to this point.

Return Value

Type: Boolean
true if the currentValue satisfies the constraint; otherwise false.
See Also