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.


Variable Index

 o frLabels
 o fuzzyResults
FuzzyResults is a double array that contains percentages of emotions.

Constructor Index

 o FuzzyResults()

Method Index

 o display(String, String)
Display the Fuzzy results.
 o getFuzzyResults()
The method getFuzzyResults can be used to get the fuzzyResults array.
 o getLoadTags()
Define the valid extensions that files of this data type may use when loading data from disk.
 o getSaveTags()
Define the valid extensions that files of this data type may use when saving data to disk.
 o load(String)
Load the fuzzyResults from disk.
 o main(String[])
 o makeFuzzyResults(int)
The method makeFuzzyResults can be used to initialise the fuzzyResult array.
 o save(String)
Save the fuzzyResults to disk.
 o toString()

Variables

 o 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.

 o frLabels
 String frLabels[]

Constructors

 o FuzzyResults
 FuzzyResults()

Methods

 o makeFuzzyResults
 public void makeFuzzyResults(int nr)
The method makeFuzzyResults can be used to initialise the fuzzyResult array.

See Also:
fuzzyResults
 o getFuzzyResults
 public double[] getFuzzyResults()
The method getFuzzyResults can be used to get the fuzzyResults array.

See Also:
fuzzyResults
 o 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
 o 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
 o load
 public void load(String filename) throws FileNotFoundException, IOException
Load the fuzzyResults from disk.

Overrides:
load in class ModuleData
 o 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
 o display
 public DataVisualisation display(String title,
                                  String filename)
Display the Fuzzy results.

Overrides:
display in class ModuleData
 o toString
 public String toString()
Overrides:
toString in class Object
 o main
 public static void main(String s[])