public class ClusterStats extends ProcessResult implements ClusterStatsDef
NameHandler
class. These stats are not proper clusters
but show what solutions from the correct cluster groups have been clustered together
by the problem solving process.Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,?> |
otherStats
Other key-value pairs for output
|
analyseLinks, clusters, max, maxB, min, minB
Constructor and Description |
---|
ClusterStats() |
Modifier and Type | Method and Description |
---|---|
protected void |
calcNameStats(MatchResult gridSolution)
Calculate stats based on the solution names.
|
void |
calcStats(GridProblemMediator problemSpec,
MatchResult solutionSet)
Calculate the stats.
|
void |
ClusterStats()
Create a new instance of ClusterStats.
|
protected java.util.ArrayList<java.lang.String> |
mostPopularCount(java.util.ArrayList<java.util.ArrayList<java.lang.String>> nameList)
Count the number of times each name is used.
|
protected java.util.ArrayList<java.util.ArrayList<java.lang.String>> |
sameCategoryCount(java.util.ArrayList<java.util.ArrayList<java.lang.String>> nameList)
Count the number of names from the same category in the list.
|
java.lang.String |
toString()
Convert the stats values into a string-based description.
|
clearAnalysis, dynamicLinksAnalysis, getAnalyseLinks, removeDummyKeys, removeDuplicateGroups, solutionNamesInGroups, sortGroupsForLinks
public java.util.HashMap<java.lang.String,?> otherStats
public void ClusterStats()
public void calcStats(GridProblemMediator problemSpec, MatchResult solutionSet) throws java.lang.Exception
calcStats
in interface ClusterStatsDef
problemSpec
- the whole problem specification with a list of all solutions.solutionSet
- the problem solving solution set. This is the object that
the problem solver returns and contains the problem solver clustering solution.java.lang.Exception
- any error.protected void calcNameStats(MatchResult gridSolution) throws java.lang.Exception
gridSolution
- the final grid solution.java.lang.Exception
- any error.protected java.util.ArrayList<java.lang.String> mostPopularCount(java.util.ArrayList<java.util.ArrayList<java.lang.String>> nameList) throws java.lang.Exception
nameList
- the name lists to count.java.lang.Exception
- any error.protected java.util.ArrayList<java.util.ArrayList<java.lang.String>> sameCategoryCount(java.util.ArrayList<java.util.ArrayList<java.lang.String>> nameList)
nameList
- the list of names to compare.public java.lang.String toString()
toString
in class ProcessResult