forked from alvesoaj/eFLL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFuzzyOutput.h
executable file
·46 lines (42 loc) · 1.19 KB
/
FuzzyOutput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Robotic Research Group (RRG)
* State University of Piaui (UESPI), Brazil - Piauí - Teresina
*
* FuzzyOutput.h
*
* Author: Msc. Marvin Lemos <marvinlemos@gmail.com>
* AJ Alves <aj.alves@zerokol.com>
* Co authors: Douglas S. Kridi <douglaskridi@gmail.com>
* Kannya Leal <kannyal@hotmail.com>
*/
#ifndef FUZZYOUTPUT_H
#define FUZZYOUTPUT_H
// IMPORTANDO AS BIBLIOTECAS NECESSÁRIAS
#include "FuzzyIO.h"
#include "FuzzyComposition.h"
// Estrutura de uma linha
struct line{
float xBegin;
float yBegin;
float xEnd;
float yEnd;
};
class FuzzyOutput : public FuzzyIO {
public:
// CONSTRUTORES
FuzzyOutput();
FuzzyOutput(int index);
// DESTRUTOR
~FuzzyOutput();
// MÉTODOS PÚBLICOS
bool truncate();
float getCrispOutput();
bool order();
private:
// VARIÁVEIS PRIVADAS
FuzzyComposition fuzzyComposition;
// MÉTODOS PRIVADOS
bool swap(fuzzySetArray* fuzzySetA, fuzzySetArray* fuzzySetB);
bool rebuild(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float* point, float* pertinence);
};
#endif