|
|||||||||
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.CompareMultipleWordFrequencies
public class CompareMultipleWordFrequencies
Generates a word form frequency comparison between two sets of works.
Field Summary | |
---|---|
protected static int |
LOGLIKECOLUMN
Column containing log-likelihood values in output table. |
protected static int |
OVERUSECOLUMN
Column containing overuse values in output table. |
protected static int |
WORDCLASSCOLUMN
Column containing word classes in output table. |
Constructor Summary | |
---|---|
CompareMultipleWordFrequencies()
Create a multiple word form frequency profile object. |
Method Summary | |
---|---|
boolean |
areResultOptionsAvailable()
Are result options available? |
static void |
doFreq(Spelling wordToAnalyze,
int wordForm,
int analysisCount,
int analysisTotalCount,
int refCount,
int refTotalCount,
int percentReportMethod,
WordHoardSortedTableModel model)
Perform frequency comparison of analysis and reference works for a word. |
protected ResultsPanel |
generateResults(Spelling wordToAnalyze,
WordHoardSortedTableModel model,
java.lang.String maxLabel,
java.lang.String maxLabel2,
int analysisDistinct,
int analysisTotal,
int referenceDistinct,
int referenceTotal)
Displays results of frequency analysis in a sorted table. |
ResultsPanel |
getCloud()
Show tag cloud of Dunning's log-likelihood profile. |
LabeledColumn |
getResultOptions()
Return result options. |
boolean |
isCloudAvailable()
Is cloud output available? |
void |
runAnalysis(javax.swing.JFrame parentWindow,
ProgressReporter progressReporter)
Run an analysis. |
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase |
---|
closeProgressReporter, createCloudAssociationMeasuresComboBox, createCompressValueRangeInTagCloudsCheckBox, generateResults, getAnalysisPercentColumnName, getChart, getCloud, getColTitleWordFormString, getContext, getDoubleFormat, getPercentReportMethodFormat, getReferencePercentColumnName, getResults, getTableFontSize, getTitle, handleTableSelectionChange, isCancelled, isChartAvailable, 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 |
---|
getChart, getContext, getResults, handleTableSelectionChange, isChartAvailable, isContextAvailable, isFilterAvailable, saveChart, setContextButton, showDialog |
Field Detail |
---|
protected static final int WORDCLASSCOLUMN
protected static final int OVERUSECOLUMN
protected static final int LOGLIKECOLUMN
Constructor Detail |
---|
public CompareMultipleWordFrequencies()
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 void doFreq(Spelling wordToAnalyze, int wordForm, int analysisCount, int analysisTotalCount, int refCount, int refTotalCount, int percentReportMethod, WordHoardSortedTableModel model)
wordToAnalyze
- The word to analyze.wordForm
- The word form type.analysisCount
- Count of word in analysis text.analysisTotalCount
- Total number of words in analysis
text.refCount
- Count of collocate in reference
text.refTotalCount
- Total number of words in reference
text.percentReportMethod
- Percent report method.model
- Table model in which to store
results. protected ResultsPanel generateResults(Spelling wordToAnalyze, WordHoardSortedTableModel model, java.lang.String maxLabel, java.lang.String maxLabel2, int analysisDistinct, int analysisTotal, int referenceDistinct, int referenceTotal)
wordToAnalyze
- Word form being analyzed.model
- Table model holding data to display.maxLabel
- Maximum width value for first
table column.maxLabel2
- Maximum width value for second
table column.analysisDistinct
- Distinct words in analysis text.analysisTotal
- Total words in analysis text.referenceDistinct
- Distinct words in reference text.referenceTotal
- Total words in reference text.
public boolean areResultOptionsAvailable()
areResultOptionsAvailable
in interface AnalysisRunner
areResultOptionsAvailable
in class FrequencyAnalysisRunnerBase
public LabeledColumn getResultOptions()
getResultOptions
in interface AnalysisRunner
getResultOptions
in class FrequencyAnalysisRunnerBase
public boolean isCloudAvailable()
isCloudAvailable
in interface AnalysisRunner
isCloudAvailable
in class FrequencyAnalysisRunnerBase
public ResultsPanel getCloud()
getCloud
in interface AnalysisRunner
getCloud
in class FrequencyAnalysisRunnerBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |