Click or drag to resize

DurationStoppingConditionConstraint Constructor (Duration, Duration, WhenToCheckConstraint, InequalityCondition, Boolean)

Initializes a new instance.

Namespace:  AGI.Foundation.StoppingConditions
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public DurationStoppingConditionConstraint(
	Duration threshold,
	Duration tolerance,
	WhenToCheckConstraint whenToCheck,
	InequalityCondition inequality,
	bool useAbsoluteValue
)

Parameters

threshold
Type: AGI.Foundation.Time.Duration
The threshold to compare with the computed Duration.
tolerance
Type: AGI.Foundation.Time.Duration
The tolerance to use when comparing the threshold with the computed Duration.
whenToCheck
Type: AGI.Foundation.StoppingConditions.WhenToCheckConstraint
Should this constraint be checked when the stop is detected or when the exact stop is found.
inequality
Type: AGI.Foundation.StoppingConditions.InequalityCondition
How to compare the computed value with the threshold.
useAbsoluteValue
Type: System.Boolean
Should the absolute value of the threshold from the epoch be used.
See Also