|
|||||||||
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.CompareSingleWordFrequencies
public class CompareSingleWordFrequencies
Compares a single word form's frequency 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 | |
---|---|
CompareSingleWordFrequencies()
Create a single word form frequency profile object. |
Method Summary | |
---|---|
protected void |
doFreq(Spelling wordToAnalyze,
int analysisCount,
int analysisTotalCount,
int refCount,
int refTotalCount,
WordHoardSortedTableModel model)
Perform frequency comparison of analysis and reference works for a word. |
protected ResultsPanel |
generateResults(WordHoardSortedTableModel model,
int analysisDistinct,
int analysisTotal,
int referenceDistinct,
int referenceTotal)
Displays results of frequency analysis in a sorted table. |
static void |
reorderCompareResultsTableColumns(javax.swing.JTable resultsTable)
Reorder columns for display. |
void |
runAnalysis(javax.swing.JFrame parentWindow,
ProgressReporter progressReporter)
Run an analysis. |
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 |
Field Detail |
---|
protected static final int WORDCLASSCOLUMN
protected static final int OVERUSECOLUMN
protected static final int LOGLIKECOLUMN
Constructor Detail |
---|
public CompareSingleWordFrequencies()
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. protected void doFreq(Spelling wordToAnalyze, int analysisCount, int analysisTotalCount, int refCount, int refTotalCount, WordHoardSortedTableModel model)
wordToAnalyze
- The word to analyze.analysisCount
- Count of word in analysis text.analysisTotalCount
- Total number of words in analysis text.refCount
- Count of word in reference text.refTotalCount
- Total number of words in reference text.model
- Table model in which to store results. protected ResultsPanel generateResults(WordHoardSortedTableModel model, int analysisDistinct, int analysisTotal, int referenceDistinct, int referenceTotal)
model
- Table model holding data to display.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 static void reorderCompareResultsTableColumns(javax.swing.JTable resultsTable)
resultsTable
- The results table.
Static method so it can be used by sibling analyses.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |