Basic constructor. See fromCategory, fromArray and fromValues for more convenient instantiation methods.
Optional_undef: numberOptional_false: numberOptional_never: numberOptional_maybe: numberOptional_true: numberRetrieves an array of Fuzzy values.
The categories order in array is: Category.UNDEF, Category.FALSE, Category.NEVER, Category.MAYBE, Category.TRUE.
Dominating Category or undefined if none of the categories
has a value greater than Fuzzy.FUZZY_FALSE.
Retrieves a copy of LogicValues.
A clone, a new instance of LogicValues created from the values kept internally.
Creates a deep copy (a clone) of a current instance.
Returns true if category is the dominating category of this object.
Checks that at least one of the categories has non-zero Fuzzy value.
Returns true if category is not the dominating category of this object.
If original values are not normalized, returns new Logic object with normalized Logic value, otherwise return the same object.
The Logic value is normalized if and only if the sum of Fuzzy values of all categories
equals to 1.0 (or 0.0 if there are no categories with Fuzzy value greater than
Fuzzy.FUZZY_FALSE).
String representation of five-dimensional vector of Fuzzy values. The categories order is: Category.UNDEF, Category.FALSE, Category.NEVER, Category.MAYBE, Category.TRUE.
StaticfromThe categories order in array is: Category.UNDEF, Category.FALSE, Category.NEVER, Category.MAYBE, Category.TRUE.
StaticfromCreates new Logic instance with Fuzzy.FUZZY_TRUE value for the specified category
(and Fuzzy.FUZZY_FALSE for all other categories).
Staticfrom
Main Fuzzy Common Sense Logic Class