Basic constructor. See fromCategory, fromArray and fromValues for more convenient instantiation methods.
Optional
_undef: numberOptional
_false: numberOptional
_never: numberOptional
_maybe: numberOptional
_true: numberDominating Category or undefined
if none of the categories
has a value greater than FUZZY_FALSE.
Retrieves a copy of LogicValues.
A clone, a new instance of LogicValues created from the values kept internally.
Checks that at least one of the categories has non-zero Fuzzy value.
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_FALSE).
Static
fromStatic
fromCreates new Logic instance with FUZZY_TRUE value for the specified category
(and FUZZY_FALSE for all other categories).
Static
fromCreates new Logic instance from LogicValues.
Generated using TypeDoc
Main Fuzzy Common Sense Logic Class