|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.reportgenerator.QEContainers.QMContainer
public class QMContainer
Field Summary | |
---|---|
private ArrayList<String> |
damagedcriteriaQM
|
(package private) HashMap<String,Double> |
MapQualities
|
static int |
NUMBER_OF_CLASSES
|
private HashMap<Integer,String> |
QualityIdentifier
|
(package private) TestRunResult |
run
|
(package private) SemanticInterpreterGrid |
sGrid
|
(package private) HashMap<String,Double> |
UnitMAXQualities
|
(package private) HashMap<String,Double> |
UnitMINQualities
|
(package private) HashMap<String,double[][]> |
UnitQualities
|
(package private) HashMap<String,int[][]> |
UnitQualitiesClassified
|
ArrayList<String> |
UnitQualityMeasureNames
|
Constructor Summary | |
---|---|
QMContainer(TestRunResult run)
|
Method Summary | |
---|---|
void |
classifyUnits(String Name)
Puts all the Values of the QM identified with "Name" in "Classes" 1-5 (strong - very weak) |
void |
clearDamagedCriteriaList()
|
double[] |
compareQualities(String Name1,
String Name2,
Unit[] Region,
int type)
Compares the 2 QM with each other,i.e looks through all units (only in the Region if region != NULL) and looks for similar values at the same Units (TRY: Enlarge the search radius to a certain neighbourhood radius (1)) |
boolean |
createQualityMeasureImage(String outputDir,
String filename,
String Name)
creates an image visualizing the Quality Measure "Name" of this SOM the image is saved under the given path and name, although a prefix run_runId_ is added to the image name |
QMConfigurationProfile |
getActualConfiguration(String qualifier,
Unit[] units,
int type)
Returns an array with the actual identification configuration , of how the qualifier QM behaves |
ArrayList<String> |
getClassFileDependantQualities()
|
String |
getClassIdentifier(int c)
Returns the string representation of the given int value FIXME: refactor this! |
int[][] |
getClassifiedUnits(String Name)
Returns the int [] of classified units for identifier Name |
ArrayList<Unit> |
getComparedQMRegionOccurances(String Name1,
String Name2,
Unit[] Region,
int type)
Returns an array of Units, witch have Intersection of QM Name1 & Name 2 with the given type of operation |
Double |
getMapQualities(String Name)
Returns the map qualities of the given quality measure |
int |
getMaximumClassifiedRegionValue(Unit[] region,
String Name)
Returns the maximum of the selected classified Region |
Unit[] |
getMaxUnit(String Name,
Unit[] Area)
returns the maximal Value of the quality measure with "Name"as identifier |
int |
getMinimumClassifiedRegionValue(Unit[] region,
String Name)
Returns the minimum of the selected classified Region |
Unit[] |
getMinUnit(String Name,
Unit[] Area)
returns the minimal Value of the quality measure with "Name"as identifier |
private SemanticNode |
getNode(int[] c)
returns the Semantic Node for given coordinates. |
int |
getNumberOfClassifiedUnits(String Name,
int clss)
Computes the number of classified units for the given class and identifier |
QMConfigurationProfile |
getOriginalConfiguration(String qualifier,
int type)
Returns an array with the original identification configuration , of how the qualifier QM should behave on MAXIMUM / MINIMUM Value |
String |
getQualityIdentifier(int quality_list_index)
Returns a String Representation of the Meaning of the Position of the ArrayList Array |
double |
getUnitMAXQualities(String Name)
|
double |
getUnitMINQualities(String Name)
|
double[][] |
getUnitQualities(String Name)
|
boolean |
hasHighDensity(Unit u)
Tests whether the Unit U is having a High Mapped Input Density. This is made upon an assumption, we say a unit is highly dense when the average value of the first 15% of units with highest values is equal or above that value that |
boolean |
hasLowDensity(Unit u)
Returns true if the Unit has a low density |
Boolean |
hasMixedClasses(Unit u)
Returns whether there are mixed classes on the Unit. |
Boolean |
hasNeighboringEmptyUnits(Unit u)
* Returns true if 8-fold neighbourhood shows any Units with no Inputs. |
Boolean |
hasSingleClass(Unit u)
|
ArrayList<SemanticClass> |
isOnClusterEdge(Unit u)
returns a ArrayList with all classes for witch unit u resembles a Cluster Edge Unit for those classes. |
boolean |
isOnMapEdge(Unit u)
tests whether a unit is on the edge of the map FIXME: this should go to GrowingLayer |
void |
putMapQualities(String Name,
double measure)
|
void |
putUnitQualities(String Name,
double[][] units)
|
void |
setsGrid(SemanticInterpreterGrid sGrid)
Sets the SemanticGrid for calculations PLEASE NOTE: only the "Master- Grid can be set here" -> wich is the Grid over the full Map, inluding all ClassReports |
void |
writeQualityIdentifier()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
HashMap<String,double[][]> UnitQualities
HashMap<String,Double> UnitMAXQualities
HashMap<String,Double> UnitMINQualities
HashMap<String,Double> MapQualities
HashMap<String,int[][]> UnitQualitiesClassified
public ArrayList<String> UnitQualityMeasureNames
SemanticInterpreterGrid sGrid
private ArrayList<String> damagedcriteriaQM
private HashMap<Integer,String> QualityIdentifier
TestRunResult run
public static int NUMBER_OF_CLASSES
Constructor Detail |
---|
public QMContainer(TestRunResult run)
Method Detail |
---|
public void putUnitQualities(String Name, double[][] units)
public double[][] getUnitQualities(String Name)
public void putMapQualities(String Name, double measure)
public Unit[] getMaxUnit(String Name, Unit[] Area)
Area
- null if whole grid is admitted, != null ifi want a Part only
public Unit[] getMinUnit(String Name, Unit[] Area)
Area
- != null if i want area selection, null if whole grid
public void classifyUnits(String Name)
public int[][] getClassifiedUnits(String Name)
public int getNumberOfClassifiedUnits(String Name, int clss)
public Double getMapQualities(String Name)
public boolean createQualityMeasureImage(String outputDir, String filename, String Name)
outputDir
- the path to the output dir where the image shall be saved (must exists, is neither checked nor
created)filename
- the name under which the image (together with the prefix run_[runId]_ ) is saved
public double getUnitMAXQualities(String Name)
public double getUnitMINQualities(String Name)
public String getClassIdentifier(int c)
public int getMaximumClassifiedRegionValue(Unit[] region, String Name)
region
- null if whole GridName
- QM Identifier
public int getMinimumClassifiedRegionValue(Unit[] region, String Name)
region
- null if whole GridName
- QM Identifier
public double[] compareQualities(String Name1, String Name2, Unit[] Region, int type)
type
- 1 = Max-Max, 2 = Min-Min, 3 = Max-Min, 4 = Min-Max Compares according to Min /Max Values return a
Array [0] gives the percentage of similarity, [1] gives the absolute difference in strength between
max/min 1/2, [2] the region of intersection(1-9)public ArrayList<Unit> getComparedQMRegionOccurances(String Name1, String Name2, Unit[] Region, int type)
public void setsGrid(SemanticInterpreterGrid sGrid)
public QMConfigurationProfile getOriginalConfiguration(String qualifier, int type)
qualifier
- the QMtype
- 1= max, 2 = Min
public QMConfigurationProfile getActualConfiguration(String qualifier, Unit[] units, int type)
qualifier
- the QMunits
- the units witch are testedtype
- 1 = MAX, 2 = MIN
public boolean hasHighDensity(Unit u)
public boolean hasLowDensity(Unit u)
public Boolean hasMixedClasses(Unit u)
public Boolean hasSingleClass(Unit u)
public boolean isOnMapEdge(Unit u)
GrowingLayer
public ArrayList<SemanticClass> isOnClusterEdge(Unit u)
public Boolean hasNeighboringEmptyUnits(Unit u)
GrowingLayer
private SemanticNode getNode(int[] c)
public String getQualityIdentifier(int quality_list_index)
quality_list_index
- gives a Description to the Index of the quality List below quality_list[0] = high
Density quality_list[1] = low Density quality_list[2] = mixed classes quality_list[3] = one class
quality_list[4] = Units on Map edges quality_list[5] = Units not on Map edges quality_list[6] = Having
neighboring empty units quality_list[7] = having no neighboring empt unist quality_list[8] = Units on
Cluster edges quality_list[9] = Units in Clusters quality_list[10] = Big Distance of mapped Vectors to
Prototype vector. quality_list[11] = Small Distance of mapped Vectors to Prototype vector.
quality_list[12] = Big average Distance of mapped Vectors compared to each other. quality_list[13] =
Small average Distance of mapped Vectors compared to each other. quality_list[14] = Input Vectors
equally distributed over the Map quality_list[15] = Input Vectors not equally distributed over the Map
quality_list[16] = Intra Cluster Distances == 0, Inter Cluster Distances != 0 quality_list[17] = Intra
Cluster Distances != 0, Inter Cluster Distances == 0public ArrayList<String> getClassFileDependantQualities()
public void clearDamagedCriteriaList()
public void writeQualityIdentifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |