Skip to content

Norm

Norm

Bases: ABC

Abstract class for norms.

fuzzylite.norm.TNorm fuzzylite.norm.SNorm
fuzzylite.norm.AlgebraicProduct fuzzylite.norm.AlgebraicSum
fuzzylite.norm.BoundedDifference fuzzylite.norm.BoundedSum
fuzzylite.norm.DrasticProduct fuzzylite.norm.DrasticSum
fuzzylite.norm.EinsteinProduct fuzzylite.norm.EinsteinSum
fuzzylite.norm.HamacherProduct fuzzylite.norm.HamacherSum
fuzzylite.norm.Minimum fuzzylite.norm.Maximum
fuzzylite.norm.NilpotentMinimum fuzzylite.norm.NilpotentMaximum
fuzzylite.norm.NormalizedSum
fuzzylite.norm.UnboundedSum
related

Functions

__repr__

__repr__() -> str

Return the code to construct the norm in Python.

Returns:

Type Description
str

code to construct the norm in Python.

__str__

__str__() -> str

Return the code to construct the norm in the FuzzyLite Language.

Returns:

Type Description
str

code to construct the norm in the FuzzyLite Language.

compute abstractmethod

compute(a: Scalar, b: Scalar) -> Scalar

Implement the norm.

Parameters:

Name Type Description Default
a Scalar

membership function value

required
b Scalar

membership function value

required

Returns:

Type Description
Scalar

norm between \(a\) and \(b\)