Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Logic

Fuzzy Common Sense Logic

Human Logic (also known as “common sense”) is based on five categories:

  • true = certainly positive
  • false = certainly negative
  • maybe = uncertain (could be either positive or negative)
  • never = impossible (neither positive nor negative)
  • undefined = totally unknown

In Fuzzy Common Sense Logic the value is five-dimensional unit vector. Each vector component is a fuzzy value (between 0.0 and 1.0 inclusive) of respective true, false, maybe, never or undefined category.

Index

Classes

Interfaces

Functions

Functions

and

  • Fuzzy Common Sense AND (global function). Allows to use different code styles, e.g.:

    const valueA = value1.and(value2);
    const valueB = and(value1, value2);
    

    See README for details.

    Parameters

    Returns Logic

normalize

  • Fuzzy Common Sense logical value normalization (global function). Allows to use different code styles, e.g.:

    const valueA = value.normalize();
    const valueB = normalize(value);
    

    See Logic.normalize for details.

    Parameters

    Returns Logic

not

  • Fuzzy Common Sense NOT (global function). Allows to use different code styles, e.g.:

    const valueA = value.not();
    const valueB = not(value);
    

    See README for details.

    Parameters

    Returns Logic

or

  • Fuzzy Common Sense OR (global function). Allows to use different code styles, e.g.:

    const valueA = value1.or(value2);
    const valueB = or(value1, value2);
    

    See README for details.

    Parameters

    Returns Logic

Generated using TypeDoc