Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Fuzzy

Fuzzy Logic (based on Zadeh operators)

Fuzzy logical value is a number between 0.0 (0% probability) and 1.0 (100% probability).

Index

Type aliases

Variables

Functions

Type aliases

Fuzzy

Fuzzy: number

Base Fuzzy Logic type.

Value must be between 0.0 (0% probability) and 1.0 (100% probability) inclusive.

Variables

Const FUZZY_FALSE

FUZZY_FALSE: Fuzzy = 0.0

Fuzzy logical value of false (zero probability)

Const FUZZY_TRUE

FUZZY_TRUE: Fuzzy = 1.0

Fuzzy logical value of true (100% probability)

Functions

and

  • Fuzzy Logical AND

    Parameters

    • Rest ...values: Fuzzy[]

      Accepts an unlimited number of arguments

    Returns Fuzzy

    Result of Fuzzy Logical AND (the minimum of all provided values, defaults to FUZZY_TRUE)

normalize

  • Ensures the fuzzy value is between 0.0 and 1.0.

    Parameters

    Returns Fuzzy

    If value is less than 0.0, returns 0.0. If value is greater then 1.0, returns 1.0. Otherwise returns value.

not

  • Fuzzy Logical NOT

    Parameters

    Returns Fuzzy

    Result of subtraction of provided value from 1.0.

or

  • Fuzzy Logical OR

    Parameters

    • Rest ...values: Fuzzy[]

      Accepts an unlimited number of arguments

    Returns Fuzzy

    Result of Fuzzy Logical OR (the maximum of all provided values, defaults to FUZZY_FALSE)

Generated using TypeDoc