|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knowceans.corpus.analysis.CorpusStatistics
public class CorpusStatistics
CorpusStatistics prints some statistics about a TermCorpus to stdout.
| Field Summary | |
|---|---|
(package private) TermCorpus |
c
|
(package private) double[] |
docFreqs
|
(package private) static java.io.PrintStream |
out
|
(package private) double[] |
termFreqs
|
(package private) double[] |
ulengths
|
(package private) double[] |
wlengths
|
| Constructor Summary | |
|---|---|
CorpusStatistics(TermCorpus corp)
Show tern statistics (Histogram of term frequencies) |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
this is the driver for Dpa statistics |
void |
showCorpusStats()
Show corpus statistics (Size of corpus, mean document size etc.) |
void |
showDocStats()
Show document statistics (Histogram of term frequencies per document) |
void |
showTermStats()
|
double[] |
stats(double[] x)
statistics of a double vector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
TermCorpus c
double[] wlengths
double[] ulengths
double[] termFreqs
double[] docFreqs
static java.io.PrintStream out
| Constructor Detail |
|---|
public CorpusStatistics(TermCorpus corp)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - public void showCorpusStats()
public void showDocStats()
public void showTermStats()
public double[] stats(double[] x)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||