|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.statistics.inferential.CrossTabulation
public class CrossTabulation
Cross tabulation and Chi-square test.
ContingencyTable| Constructor Summary | |
|---|---|
CrossTabulation(int a,
int b)
Constructor, given the number of rows and columns. |
|
| Method Summary | |
|---|---|
void |
addObservation(int i,
int j,
double frequency)
Adds the given frequency to the location at row i and column j. |
void |
computeChiSquare()
Creates a contingency table object using the cross tabulation data. |
double |
getColumnSum(int j)
Return the sum of the given column. |
double |
getColumnSumPercent(int i)
Return the percent of the sum of the given column out of the total sum. |
ContingencyTable |
getContingencyTable()
Returns the contingency table. |
double |
getFrequency(int i,
int j)
Returns the frequency at row i and column j. |
double |
getPercent(int i,
int j)
Returns the percent at row i and column j. |
double |
getRowSum(int i)
Return the sum of the given row. |
double |
getRowSumPercent(int i)
Return the percent of the sum of the given row out of the total sum. |
double |
getTotalSum()
Return the total sum. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrossTabulation(int a,
int b)
a - number of rowsb - number of columns| Method Detail |
|---|
public void addObservation(int i,
int j,
double frequency)
i - row indexj - column indexdata - double array
public double getFrequency(int i,
int j)
i - row indexj - column index
public double getPercent(int i,
int j)
i - j -
public double getRowSum(int i)
i - row index
public double getRowSumPercent(int i)
i - row index
public double getColumnSum(int j)
j - column index
public double getColumnSumPercent(int i)
i - column index
public double getTotalSum()
public void computeChiSquare()
public ContingencyTable getContingencyTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||