58 inline void clean(
void);
92 double readTSK(
size_t input)
const;
97 TNT::Array1D<double>
readTSK(
void)
const;
175 double *dW = NULL)
const;
int changeFunction(const Membership &P, size_t input)
Changes a Membership function of the Rule.
Definition: rule.cpp:88
TYPE_MF
Enumeration with the implemented Membership functions.
Definition: membership.hpp:117
size_t NumberOfAntecedents(void)
Gets the number of parameters stored in the antecedents of the Rule.
Definition: rule.cpp:121
Membership ** membership
Membership functions of the Rule.
Definition: rule.hpp:57
This class contains methods and attributes common to fuzzy Rules.
Definition: rule.hpp:53
TNT::Array1D< double > readTSK(void) const
Reads the TSK consequent.
Definition: rule.cpp:75
Membership * readFunction(size_t input)
Extracts a pointer to a Membership function.
Definition: rule.cpp:81
double activation(const double *const point, double *dW=NULL) const
Calculates the matching degree of the rule in point and, optionally, its derivative.
Definition: rule.cpp:180
Fuzzy Logic Tools (FLT) namespace.
Definition: derivatives.hpp:41
size_t n_inputs(void) const
Extract the number of inputs of the Rule.
Definition: rule.cpp:31
double * TSK
TSK consequent of the Rule.
Definition: rule.hpp:56
void clean(void)
Cleans the dynamic memory.
Definition: rule.cpp:9
int setAntecedents(const double *const parameters)
Sets the parameters of the antecedents of the Rule.
Definition: rule.cpp:131
Defines Membership functions.
int test(void) const
This function checks the parameters of all Membership functions in the Rule, and corrects them if pos...
Definition: rule.cpp:36
void initialize(size_t in)
Initializes the Rule for in inputs.
Definition: rule.cpp:110
TNT::Array1D< double > getConsequents(void)
Gets the consequents of the Rule.
Definition: rule.cpp:170
TNT::Array1D< double > getAntecedents(void)
Gets the parameters of the antecedents of the Rule.
Definition: rule.cpp:146
This class contains methods and attributes common to all Membership functions.
Definition: membership.hpp:198
size_t in
Number of inputs of the Rule.
Definition: rule.hpp:55
int changeTSK(double value, size_t input)
Changes a parameter in the TSK consequent.
Definition: rule.cpp:54
void setConsequents(const double *const parameters)
Sets the consequents of the Rule.
Definition: rule.cpp:162