The Ramp class is an edge Term that represents the ramp membership function.  
 More...
#include <Ramp.h>
The Ramp class is an edge Term that represents the ramp membership function. 
- Author
- Juan Rada-Vilela, Ph.D. 
- See also
- Term 
- 
Variable 
- Since
- 4.0 
Definition at line 35 of file Ramp.h.
◆ Direction
Direction is an enumerator that indicates the direction of the ramp. 
| Enumerator | 
|---|
| Positive | (_/)increases to the right
 | 
| Zero | (--)slope is zero
 | 
| Negative | (\\_)increases to the left
 | 
Definition at line 44 of file Ramp.h.
 
 
◆ Ramp()
  
  | 
        
          | fl::Ramp::Ramp | ( | const std::string & | name = "", |  
          |  |  | scalar | start = fl::nan, |  
          |  |  | scalar | end = fl::nan, |  
          |  |  | scalar | height = 1.0 |  
          |  | ) |  |  |  | explicit | 
 
 
◆ ~Ramp()
  
  | 
        
          | virtual fl::Ramp::~Ramp | ( |  | ) |  |  | virtual | 
 
 
◆ className()
  
  | 
        
          | virtual std::string fl::Ramp::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 Ramp* fl::Ramp::clone | ( |  | ) | const |  | virtual | 
 
Creates a clone of the term. 
- Returns
- a clone of the term 
Implements fl::Term.
 
 
◆ complexity()
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::Ramp::configure | ( | const std::string & | parameters | ) |  |  | virtual | 
 
Configures the term with the parameters. 
- Parameters
- 
  
    | parameters | as "start end [height]" |  
 
Implements fl::Term.
 
 
◆ constructor()
  
  | 
        
          | static Term* fl::Ramp::constructor | ( |  | ) |  |  | static | 
 
 
◆ direction()
  
  | 
        
          | virtual Direction fl::Ramp::direction | ( |  | ) | const |  | virtual | 
 
Returns the direction of the ramp. 
- Returns
- the direction of the ramp 
 
 
◆ getEnd()
  
  | 
        
          | virtual scalar fl::Ramp::getEnd | ( |  | ) | const |  | virtual | 
 
Gets the end of the ramp. 
- Returns
- the end of the ramp 
 
 
◆ getStart()
  
  | 
        
          | virtual scalar fl::Ramp::getStart | ( |  | ) | const |  | virtual | 
 
Gets the start of the ramp. 
- Returns
- the start of the ramp 
 
 
◆ isMonotonic()
  
  | 
        
          | virtual bool fl::Ramp::isMonotonic | ( |  | ) | const |  | virtual | 
 
 
◆ membership()
Computes the membership function evaluated at \(x\). 
- Parameters
- 
  
  
- Returns
- \(\begin{cases} 0h & \mbox{if $x = e$}\cr \begin{cases} 0h & \mbox{if $x \leq s$}\cr 1h & \mbox{if $x \geq e$}\cr h (x - s) / (e - s) & \mbox{otherwise}\cr \end{cases} & \mbox{if $s < e$}\cr \begin{cases} 0h & \mbox{if $x \geq s$}\cr 1h & \mbox{if $x \leq e$}\cr h (s - x) / (s - e) & \mbox{otherwise} \end{cases} & \mbox{if $s > e$}\cr \end{cases}\)
where \(h\) is the height of the Term, \(s\) is the start of the Ramp, \(e\) is the end of the Ramp 
Implements fl::Term.
 
 
◆ parameters()
  
  | 
        
          | virtual std::string fl::Ramp::parameters | ( |  | ) | const |  | virtual | 
 
Returns the parameters of the term. 
- Returns
- "start end [height]"
Implements fl::Term.
 
 
◆ setEnd()
  
  | 
        
          | virtual void fl::Ramp::setEnd | ( | scalar | end | ) |  |  | virtual | 
 
Sets the end of the ramp. 
- Parameters
- 
  
    | end | is the end of the ramp |  
 
 
 
◆ setStart()
  
  | 
        
          | virtual void fl::Ramp::setStart | ( | scalar | start | ) |  |  | virtual | 
 
Sets the start of the ramp. 
- Parameters
- 
  
    | start | is the start of the ramp |  
 
 
 
◆ tsukamoto()
The documentation for this class was generated from the following file: