fuzzylite  6.0 A Fuzzy Logic Control Library in C++
fl::Any Class Reference

The Any class is a special Hedge that always returns 1.0. More...

#include <Any.h>

Inheritance diagram for fl::Any:
Collaboration diagram for fl::Any:

## Public Member Functions

Any ()

virtual ~Any () FL_IOVERRIDE

virtual std::string name () const FL_IOVERRIDE
Returns the name of the hedge. More...

virtual Complexity complexity () const FL_IOVERRIDE
Computes the estimated complexity of applying the hedge. More...

virtual scalar hedge (scalar x) const FL_IOVERRIDE
Computes the hedge for the given value. More...

virtual Anyclone () const FL_IOVERRIDE
Creates a clone of the hedge. More...

Public Member Functions inherited from fl::Hedge
Hedge ()

virtual ~Hedge ()

## Static Public Member Functions

static Hedgeconstructor ()

## Detailed Description

The Any class is a special Hedge that always returns 1.0.

Its position with respect to the other hedges is last in the ordered set (Not, Seldom, Somewhat, Very, Extremely, Any). The Antecedent of a Rule considers Any to be a syntactically special hedge because it is not followed by a Term (e.g., if Variable is any then...). Amongst hedges, only Any has virtual methods to be overriden due to its particular case.

Hedge
HedgeFactory
Since
4.0

Definition at line 37 of file Any.h.

## ◆ Any()

 fl::Any::Any ( )

## ◆ ~Any()

 virtual fl::Any::~Any ( )
virtual

## ◆ clone()

 virtual Any* fl::Any::clone ( ) const
virtual

Creates a clone of the hedge.

Returns
a clone of the hedge.

Implements fl::Hedge.

## ◆ complexity()

 virtual Complexity fl::Any::complexity ( ) const
virtual

Computes the estimated complexity of applying the hedge.

Returns
the estimated complexity of applying the hedge

Implements fl::Hedge.

## ◆ constructor()

 static Hedge* fl::Any::constructor ( )
static

## ◆ hedge()

 virtual scalar fl::Any::hedge ( scalar x ) const
virtual

Computes the hedge for the given value.

Parameters
 x is irrelevant
Returns
1.0

Implements fl::Hedge.

## ◆ name()

 virtual std::string fl::Any::name ( ) const
virtual

Returns the name of the hedge.

Returns
the name of the hedge

Implements fl::Hedge.

The documentation for this class was generated from the following file:
• fuzzylite/fl/hedge/Any.h