|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase edu.northwestern.at.wordhoard.swing.calculator.analysis.CompareTexts
public class CompareTexts
Generates measures of similarity between two text sets.
Field Summary |
---|
Constructor Summary | |
---|---|
CompareTexts()
Create a multiple word form frequency profile object. |
Method Summary | |
---|---|
static double[] |
computeDocumentSimilarities(java.util.Map countMap1,
java.util.Map countMap2)
Compute document similarity measures given two count maps. |
protected ResultsPanel |
generateResults(WordHoardSortedTableModel model,
java.lang.String maxLabel)
Displays results of text comparison in a sorted table. |
static java.lang.String |
getWordCounterLabel(WordCounter wordCounter,
int breakdownBy)
Get label for word counter. |
void |
runAnalysis(javax.swing.JFrame parentWindow,
ProgressReporter progressReporter)
Run an analysis. |
boolean |
similaritiesAreOK(double[] similarities)
Determine if similarity values are OK. |
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase |
---|
areResultOptionsAvailable, closeProgressReporter, createCloudAssociationMeasuresComboBox, createCompressValueRangeInTagCloudsCheckBox, generateResults, getAnalysisPercentColumnName, getChart, getCloud, getCloud, getColTitleWordFormString, getContext, getDoubleFormat, getPercentReportMethodFormat, getReferencePercentColumnName, getResultOptions, getResults, getTableFontSize, getTitle, handleTableSelectionChange, isCancelled, isChartAvailable, isCloudAvailable, isContextAvailable, isFilterAvailable, saveChart, setContextButton, showDialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.northwestern.at.wordhoard.swing.calculator.analysis.AnalysisRunner |
---|
areResultOptionsAvailable, getChart, getCloud, getContext, getResultOptions, getResults, handleTableSelectionChange, isChartAvailable, isCloudAvailable, isContextAvailable, isFilterAvailable, saveChart, setContextButton, showDialog |
Constructor Detail |
---|
public CompareTexts()
Method Detail |
---|
public void runAnalysis(javax.swing.JFrame parentWindow, ProgressReporter progressReporter)
runAnalysis
in interface AnalysisRunner
runAnalysis
in class FrequencyAnalysisRunnerBase
parentWindow
- Parent window for dialogs in the analysis.progressReporter
- Progress display for analysis. public static java.lang.String getWordCounterLabel(WordCounter wordCounter, int breakdownBy)
wordCounter
- The word counter for the table entry.breakdownBy
- The method of breaking down the texts.
public boolean similaritiesAreOK(double[] similarities)
similarities
- The similarities to check.
public static double[] computeDocumentSimilarities(java.util.Map countMap1, java.util.Map countMap2)
countMap1
- First count map.countMap2
- Second count map.
protected ResultsPanel generateResults(WordHoardSortedTableModel model, java.lang.String maxLabel)
model
- Table model holding data to display.maxLabel
- Maximum width value for first table column.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |