Skip to content

NormLambda

NormLambda

Bases: TNorm, SNorm

TNorm or SNorm based on a \(\lambda\) function on any two values.

Equation

\(a \oplus b = a \otimes b = \lambda(a,b)\)

This Norm is not registered in the SNormFactory or TNormFactory.

related

Attributes

function instance-attribute

function = function

Functions

__init__

__init__(function: Callable[[Scalar, Scalar], Scalar]) -> None

Constructor.

Parameters:

Name Type Description Default
function Callable[[Scalar, Scalar], Scalar]

function \(\lambda(a,b)\).

required

__repr__

__repr__() -> str

Return the code to construct the norm in Python.

Returns:

Type Description
str

code to construct the norm in Python.

compute

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

Compute the norm using \(\lambda(a,b)\).

Parameters:

Name Type Description Default
a Scalar

membership function value

required
b Scalar

membership function value

required

Returns:

Type Description
Scalar

\(a \oplus b = a \otimes b = \lambda(a,b)\)