|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvar.FSCompare
public class FSCompare
This class is meant to find comparable results between featureselection filters of the full type. Indeed, these filters can be written to a file and then compared, in case the same features are used. An exact match of all the features is requested. While this is not strictly necessary (since we could be able to skip some of them and just compare the relevant classificationfeatures), it does make the program a lot more cleaner and easier to write. Thus, we have opted for this solution.
Constructor Summary | |
---|---|
FSCompare(java.lang.String[] args)
|
Method Summary | |
---|---|
void |
compareFeatureFiles(FeatureFileContent ffc_1,
FeatureFileContent ffc_2)
This method compares the different contents of the featurefiles. |
java.lang.String |
explanation(int loc,
java.util.List<java.util.List<ValPosCombination>> attrib_list,
java.util.List<ClassificationFeature> cfList)
Generates an explanation for the located feature. |
FeatureFileContent |
extractContent(java.io.File file)
This method extracts the content of a featurefile, parses it and then goes on to store it all in one object. |
static void |
main(java.lang.String[] args)
|
boolean |
testClassificationFeatures(FeatureFileContent ffc_1,
FeatureFileContent ffc_2)
This method tests whether or not two featurefiles are generated by the same amount and types of classificationfeatures. |
void |
testSimilarLocations(FeatureFileContent ffc_1,
FeatureFileContent ffc_2)
This method tests the same locations within both contents of featurefiles. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSCompare(java.lang.String[] args)
Method Detail |
---|
public static void main(java.lang.String[] args)
public void compareFeatureFiles(FeatureFileContent ffc_1, FeatureFileContent ffc_2)
ffc_1
- Content of featurefile 1ffc_2
- Content of featurefile 2public void testSimilarLocations(FeatureFileContent ffc_1, FeatureFileContent ffc_2)
ffc_1
- The content of feature file oneffc_2
- The content of feature file twopublic java.lang.String explanation(int loc, java.util.List<java.util.List<ValPosCombination>> attrib_list, java.util.List<ClassificationFeature> cfList)
loc
- Location in the total featurelist (can thus reach very high values)attrib_list
- Double nested list which determines the ranges of the classificationfeaturescfList
- The list with used classificationfeatures
public boolean testClassificationFeatures(FeatureFileContent ffc_1, FeatureFileContent ffc_2)
ffc_1
- The content of feature file 1ffc_2
- The content of feature file 2
public FeatureFileContent extractContent(java.io.File file) throws java.io.IOException
file
- The featurefile
java.io.IOException
- In case of a file reading exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |