The Constant class is a (zero) polynomial Term that represents a constant value \( f(x) = k \).
More...
#include <Constant.h>
The Constant class is a (zero) polynomial Term that represents a constant value \( f(x) = k \).
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Term
-
Variable
- Since
- 4.0
Definition at line 33 of file Constant.h.
◆ Constant()
fl::Constant::Constant |
( |
const std::string & |
name = "" , |
|
|
scalar |
value = fl::nan |
|
) |
| |
|
explicit |
◆ ~Constant()
virtual fl::Constant::~Constant |
( |
| ) |
|
|
virtual |
◆ className()
virtual std::string fl::Constant::className |
( |
| ) |
const |
|
virtual |
Returns the name of the class of the term.
- Returns
- the name of the class of the term
Implements fl::Term.
◆ clone()
virtual Constant* fl::Constant::clone |
( |
| ) |
const |
|
virtual |
Creates a clone of the term.
- Returns
- a clone of the term
Implements fl::Term.
◆ complexity()
virtual Complexity fl::Constant::complexity |
( |
| ) |
const |
|
virtual |
Computes the estimated complexity of evaluating the membership function.
- Returns
- the estimated complexity of evaluating the membership function
Implements fl::Term.
◆ configure()
virtual void fl::Constant::configure |
( |
const std::string & |
parameters | ) |
|
|
virtual |
Configures the term with the parameters.
- Parameters
-
Implements fl::Term.
◆ constructor()
static Term* fl::Constant::constructor |
( |
| ) |
|
|
static |
◆ getValue()
virtual scalar fl::Constant::getValue |
( |
| ) |
const |
|
virtual |
Gets the constant value.
- Returns
- the constant value
◆ membership()
Computes the membership function evaluated at \(x\).
- Parameters
-
- Returns
- \(c\), where \(c\) is the constant value
Implements fl::Term.
◆ parameters()
virtual std::string fl::Constant::parameters |
( |
| ) |
const |
|
virtual |
Returns the parameters of the term.
- Returns
"value"
Implements fl::Term.
◆ setValue()
virtual void fl::Constant::setValue |
( |
scalar |
value | ) |
|
|
virtual |
Sets the constant value.
- Parameters
-
value | is the constant value |
The documentation for this class was generated from the following file: