27 #ifndef _UTILITIES_HPP_
28 #define _UTILITIES_HPP_
43 #define strcmpi strcasecmp // Make the change to compile in Windows(MinGW) & GNU/Linux(gcc/g++)
94 char *inputs[] = NULL,
95 char *outputs[] = NULL,
105 TNT::Array1D<double>
evaluate(
const double *
const point,
139 unsigned int numMeshPoints = 5,
140 double precision = 1E-3,
141 bool addMesh =
false,
142 bool onlyStatePoints =
true);
System subSystem(System &S, size_t nrules, size_t *outputs, size_t *rules)
Extracts a subsystem from a fuzzy System.
Definition: utilities.cpp:398
Defines a general Takagi-Sugeno fuzzy System.
System TXT2System(const char *file)
Reads a fuzzy System from a text file.
Definition: utilities.cpp:30
TNT::Array2D< double > extractPoints(System &S, unsigned int numMeshPoints=5, double precision=1E-3, bool addMesh=false, bool onlyStatePoints=true)
Extracts the representative points of a fuzzy system.
Definition: utilities.cpp:483
Fuzzy Logic Tools (FLT) namespace.
Definition: derivatives.hpp:41
int System2TXT(System &S, const char *file)
Saves the fuzzy System S in a text file.
Definition: utilities.cpp:10
int printSystem(const char *file, System &S, char *inputs[]=NULL, char *outputs[]=NULL, int accuracy=10)
Writes a fuzzy system in its linguistic form.
Definition: utilities.cpp:49
TNT::Array1D< double > evaluate(const double *const point, System &S, System &C)
Evaluates a closed loop fuzzy system in the given point.
Definition: utilities.cpp:139
System initialController(System &Plant)
Creates a fuzzy Controller from a given plant.
Definition: utilities.cpp:302