Bell Membership function.
More...
#include <membership.hpp>
Bell Membership function.
GBellmf is a bell Membership function with 3 parameters.
int Membership::edit |
( |
size_t |
index, |
|
|
double |
value |
|
) |
| |
|
inherited |
Changes a parameter.
- Returns
- Returns 0 if no errors occurred.
An error means the index value is greater than the number of function parameters.
- Note
- The parameter value is not checked. If you want to check it, you must use Membership::test method.
void Membership::edit |
( |
const double *const |
parameters | ) |
|
|
inherited |
Changes the vector of parameters.
- Note
- The values of the parameters are not checked. If you want to check it, you must use Membership::test method.
double GBellmf::eval |
( |
double |
x | ) |
const |
|
virtual |
double GBellmf::evalder |
( |
double |
x | ) |
const |
|
virtual |
size_t Membership::num_params |
( |
void |
| ) |
const |
|
inherited |
double GBellmf::paramder |
( |
size_t |
parameter, |
|
|
double |
x |
|
) |
| const |
|
virtual |
double Membership::read |
( |
size_t |
index | ) |
const |
|
inherited |
Reads a parameter of the Membership function.
- Returns
- If
index
is greater than the number of function parameters, an error is sent to the standard error stream and return 0.
int GBellmf::test |
( |
void |
| ) |
const |
|
virtual |
This function checks parameters in the Membership function, and corrects them if possible.
- Returns
- Returns 0 if no errors, 1 if an error occurs, and -1 if the parameters were corrected.
Reimplemented from FLT::Membership.
TYPE_MF Membership::type |
( |
void |
| ) |
const |
|
inherited |
int Membership::type |
( |
TYPE_MF |
type_mf | ) |
|
|
inherited |
Changes the Membership function type.
- Returns
- Returns 0 if no errors occurred.
An error means the type of Membership function is not recognized.
- Note
- The parameters of the new Membership function are not assigned, you must do so by Membership::edit method.
The documentation for this class was generated from the following files: