Sigmoidal Membership function.
More...
#include <membership.hpp>
Sigmoidal Membership function.
Sigmf is a sigmoidal Membership function with 2 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 Sigmf::eval |
( |
double |
x | ) |
const |
|
virtual |
double Sigmf::evalder |
( |
double |
x | ) |
const |
|
virtual |
size_t Membership::num_params |
( |
void |
| ) |
const |
|
inherited |
double Sigmf::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 Membership::test |
( |
void |
| ) |
const |
|
virtualinherited |
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: