View Source Flex.Rule (FLex v0.2.0)

An interface to create Linguistic Rules.

Link to this section Summary

Types

t()

Linguistic Rule struct.

Functions

Fuzzy AND operator.

Fuzzy THEN operator.

Gets the arguments of the Fuzzy Rule

Creates a Linguistic Rule.

Fuzzy Rules AST (Tuple).

Fuzzy AND operator (product).

Fuzzy OR operator.

Fuzzy IS operator.

Link to this section Types

@type t() :: %Flex.Rule{
  antecedent: [Flex.Variable.t(), ...],
  consequent: Flex.Variable.t(),
  statement: (... -> any()) | tuple()
}

Linguistic Rule struct.

  • :statement - Rules behavior.
  • :antecedent - (list) Input variables.
  • :consequent - Output variable.

Link to this section Functions

Fuzzy AND operator.

Fuzzy THEN operator.

Link to this function

get_rule_parameters(list, antecedent, lt_ant_vars)

View Source

Gets the arguments of the Fuzzy Rule

Creates a Linguistic Rule.

The following options are require:

  • :statement - Defines the rule behavior.
  • :antecedent - (list) Defines the input variables.
  • :consequent - Defines the output variable.

Fuzzy Rules AST (Tuple).

Fuzzy AND operator (product).

Fuzzy OR operator.

Fuzzy IS operator.