DelegateStoppingCondition Constructor (ConditionCheckCallback, Double, Double, StopType) |
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 DelegateStoppingCondition(
ConditionCheckCallback callback,
double threshold,
double valueTolerance,
StopType type
)
Public Sub New (
callback As ConditionCheckCallback,
threshold As Double,
valueTolerance As Double,
type As StopType
)
public:
DelegateStoppingCondition(
ConditionCheckCallback^ callback,
double threshold,
double valueTolerance,
StopType type
)
new :
callback : ConditionCheckCallback *
threshold : float *
valueTolerance : float *
type : StopType -> DelegateStoppingCondition
Parameters
- callback
- Type: AGI.Foundation.StoppingConditionsConditionCheckCallback
The ConditionCheckCallback that will provide values to sample. - threshold
- Type: SystemDouble
The threshold to stop the function on. This value is ignored if the TypeOfStoppingCondition
is not a threshold. - valueTolerance
- Type: SystemDouble
The tolerance between the value returned by callback and the
threshold. - type
- Type: AGI.Foundation.StoppingConditionsStopType
Specifies what type of threshold or extrema this StoppingCondition is attempting to find.
See Also