Skip to content

HedgeLambda

HedgeLambda

Bases: Hedge

Hedge that modifies the membership function value of a term according to a \(\lambda\) function.

This hedge is not registered with the HedgeFactory because the \(\lambda\) function cannot be easily configured.

related

Attributes

_name instance-attribute

_name = name

function instance-attribute

function = function

name property

name: str

Get the name of the hedge.

Returns:

Type Description
str

name of the hedge

Functions

__init__

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

Constructor.

Parameters:

Name Type Description Default
name str

name of the hedge

required
function Callable[[Scalar], Scalar]

\(\lambda\) function.

required

hedge

hedge(x: Scalar) -> Scalar

Compute \(\lambda(x)\).

Parameters:

Name Type Description Default
x Scalar

membership function value

required

Returns:

Type Description
Scalar

\(h(x) = \lambda(x)\)