Class FuzzyResults
java.lang.Object
|
+----framework.ModuleData
|
+----FuzzyResults
- class FuzzyResults
- extends ModuleData
- implements Data
The FuzzyResults data structure contains the results of the Fuzzy logic
edge detection program created by Jacek Woidel. These results are output of
the neural network. The results indicate a percentage of an emotion, where
100% is full emotion and 0% means that there is no relevance to that
emotion. The 3 emotions investigated here (by the Edge detection program)
are Smiling, Neutral and Sad.
-
frLabels
-
-
fuzzyResults
- FuzzyResults is a double array that contains percentages of emotions.
-
FuzzyResults()
-
-
display(String, String)
- Display the Fuzzy results.
-
getFuzzyResults()
- The method getFuzzyResults can be used to get the fuzzyResults array.
-
getLoadTags()
- Define the valid extensions that files of this data type may use
when loading data from disk.
-
getSaveTags()
- Define the valid extensions that files of this data type may use
when saving data to disk.
-
load(String)
- Load the fuzzyResults from disk.
-
main(String[])
-
-
makeFuzzyResults(int)
- The method makeFuzzyResults can be used to initialise the fuzzyResult
array.
-
save(String)
- Save the fuzzyResults to disk.
-
toString()
-
fuzzyResults
double fuzzyResults[]
- FuzzyResults is a double array that contains percentages of emotions.
At this time there are only 3 emotions used here: Smiling, Neutral
and Sad.
frLabels
String frLabels[]
FuzzyResults
FuzzyResults()
makeFuzzyResults
public void makeFuzzyResults(int nr)
- The method makeFuzzyResults can be used to initialise the fuzzyResult
array.
- See Also:
- fuzzyResults
getFuzzyResults
public double[] getFuzzyResults()
- The method getFuzzyResults can be used to get the fuzzyResults array.
- See Also:
- fuzzyResults
getLoadTags
protected String[] getLoadTags()
- Define the valid extensions that files of this data type may use
when loading data from disk.
- Overrides:
- getLoadTags in class ModuleData
getSaveTags
protected String[] getSaveTags()
- Define the valid extensions that files of this data type may use
when saving data to disk.
- Overrides:
- getSaveTags in class ModuleData
load
public void load(String filename) throws FileNotFoundException, IOException
- Load the fuzzyResults from disk.
- Overrides:
- load in class ModuleData
save
public void save(String filename) throws FileNotFoundException, IOException
- Save the fuzzyResults to disk. There is a C++ function that does the
same thing as this method but it was easier (faster) to write a
java method for it.
- Overrides:
- save in class ModuleData
display
public DataVisualisation display(String title,
String filename)
- Display the Fuzzy results.
- Overrides:
- display in class ModuleData
toString
public String toString()
- Overrides:
- toString in class Object
main
public static void main(String s[])