Instance Method

maximumGrade(forFacts:)

Returns the highest membership grade among the specified facts.

Declaration

func maximumGrade(forFacts facts: [Any]) -> Float

Parameters

facts

An array of objects representing truths claimed or rejected by the rule system. For details, see the facts property.

Return Value

The highest membership grade in the array of facts.

Discussion

In fuzzy logic, this method is called the OR Zadeh operator, because it corresponds to the OR operator in Boolean logic.

See Also

Drawing Conclusions from Facts

func grade(forFact: NSObjectProtocol) -> Float

Returns the membership grade of the specified fact.

func minimumGrade(forFacts: [Any]) -> Float

Returns the lowest membership grade among the specified facts.