Skip to content

NormFunction

NormFunction

Bases: TNorm, SNorm

TNorm or SNorm based on a term function on any two values.

Equation

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

This Norm is not registered in the SNormFactory or TNormFactory.

related

Attributes

function instance-attribute

function = function

Functions

__init__

__init__(function: Function) -> None

Constructor.

Parameters:

Name Type Description Default
function Function

function \(f(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 \(f(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=f(a,b)\)