The Gaussian class is an extended Term that represents the Gaussian curve membership function.  
 More...
#include <Gaussian.h>
The Gaussian class is an extended Term that represents the Gaussian curve membership function. 
- Author
- Juan Rada-Vilela, Ph.D. 
- See also
- Term 
- 
Variable 
- Since
- 4.0 
Definition at line 35 of file Gaussian.h.
◆ Gaussian()
  
  | 
        
          | fl::Gaussian::Gaussian | ( | const std::string & | name = "", |  
          |  |  | scalar | mean = fl::nan, |  
          |  |  | scalar | standardDeviation = fl::nan, |  
          |  |  | scalar | height = 1.0 |  
          |  | ) |  |  |  | explicit | 
 
 
◆ ~Gaussian()
  
  | 
        
          | virtual fl::Gaussian::~Gaussian | ( |  | ) |  |  | virtual | 
 
 
◆ className()
  
  | 
        
          | virtual std::string fl::Gaussian::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 Gaussian* fl::Gaussian::clone | ( |  | ) | const |  | virtual | 
 
Creates a clone of the term. 
- Returns
- a clone of the term 
Implements fl::Term.
 
 
◆ complexity()
  
  | 
        
          | virtual Complexity fl::Gaussian::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::Gaussian::configure | ( | const std::string & | parameters | ) |  |  | virtual | 
 
Configures the term with the parameters. 
- Parameters
- 
  
    | parameters | as "mean standardDeviation [height]" |  
 
Implements fl::Term.
 
 
◆ constructor()
  
  | 
        
          | static Term* fl::Gaussian::constructor | ( |  | ) |  |  | static | 
 
 
◆ getMean()
  
  | 
        
          | virtual scalar fl::Gaussian::getMean | ( |  | ) | const |  | virtual | 
 
 
◆ getStandardDeviation()
  
  | 
        
          | virtual scalar fl::Gaussian::getStandardDeviation | ( |  | ) | const |  | virtual | 
 
Gets the standard deviation of the Gaussian curve. 
- Returns
- the standard deviation of the Gaussian curve 
 
 
◆ membership()
Computes the membership function evaluated at \(x\). 
- Parameters
- 
  
  
- Returns
- \( h \times \exp(-(x-\mu)^2/(2\sigma^2))\)
where \(h\) is the height of the Term, \(\mu\) is the mean of the Gaussian, \(\sigma\) is the standard deviation of the Gaussian 
Implements fl::Term.
 
 
◆ parameters()
  
  | 
        
          | virtual std::string fl::Gaussian::parameters | ( |  | ) | const |  | virtual | 
 
Returns the parameters of the term. 
- Returns
- "mean standardDeviation [height]"
Implements fl::Term.
 
 
◆ setMean()
  
  | 
        
          | virtual void fl::Gaussian::setMean | ( | scalar | mean | ) |  |  | virtual | 
 
Sets the mean of the Gaussian curve. 
- Parameters
- 
  
  
 
 
◆ setStandardDeviation()
  
  | 
        
          | virtual void fl::Gaussian::setStandardDeviation | ( | scalar | standardDeviation | ) |  |  | virtual | 
 
Sets the standard deviation of the Gaussian curve. 
- Parameters
- 
  
    | standardDeviation | is the standard deviation of the Gaussian curve |  
 
 
 
The documentation for this class was generated from the following file: