Increases the membership grade of the specified fact by the specified amount, adding it to the fact set if necessary, and reevaluates the rules in the system’s agenda.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An object representing a truth to be claimed by the rule system. For details, see the
The amount by which to increase the fact’s membership grade.
Each fact has a membership grade ranging from zero to 1.0, representing variable levels of truth, strength, or confidence for use in fuzzy logic. Calling this method increases the fact’s grade by the amount specified in the
grade parameter (up to a maximum of 1.0), adding the fact to the
facts array if it is not already present.
Upon asserting or retracting any facts, the system reevaluates the rules in its
agenda list so any rules that depend on changes to the set of facts can perform their actions.