|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.metaomgraph.CorrelationCalc
public class CorrelationCalc
Calculates Pearson Correlations for sets of data. Initialize it with data set A, and you can calculate P(A,B), P(A,C), etc. If you want to calculate P(B,C), you'll need to create a new calculator.
| Constructor Summary | |
|---|---|
CorrelationCalc(double[] baseData)
Constructs a correlation calculator for a given set of data |
|
CorrelationCalc(java.lang.Number[] baseData)
Constructs a correlation calculator for a given set of data |
|
CorrelationCalc(java.lang.Object[] baseData)
Constructs a correlation calculator for a given set of data. |
|
| Method Summary | |
|---|---|
double |
oldPearsonCorrelation(double[] b)
Calculates the Pearson Correlation of this calculator's base data with another set of data. |
double |
pearsonCorrelation(double[] b,
boolean hasSkips,
java.lang.Double blankValue)
|
double |
pearsonCorrelation(java.lang.Object[] b,
boolean hasSkips,
java.lang.Double blankValue)
Calculates the Pearson Correlation of this calculator's base data with another set of data. |
double |
pearsonCorrelationStandard(double[] b)
|
double |
pearsonCorrelationWithSkips(double[] b,
java.lang.Double blankValue)
|
double |
spearmanCorrelation(double[] b,
boolean hasSkips,
java.lang.Double blankValue)
|
double |
spearmanCorrelation(java.lang.Object[] b,
boolean hasSkips,
java.lang.Double blankValue)
Calculates the Spearman Correlation of this calculator's base data with another set of data. |
double |
spearmanCorrelationStandard(double[] b)
Calculates the Spearman Correlation of this calculator's base data with another set of data. |
double |
spearmanCorrelationWithReplacements(double[] b,
java.lang.Double blankValue)
|
double |
spearmanCorrelationWithSkips(double[] b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CorrelationCalc(double[] baseData)
baseData - Data against which everything will be comparedpublic CorrelationCalc(java.lang.Number[] baseData)
baseData - Data against which everything will be comparedpublic CorrelationCalc(java.lang.Object[] baseData)
baseData - Data against which everything will be compared| Method Detail |
|---|
public double pearsonCorrelation(java.lang.Object[] b,
boolean hasSkips,
java.lang.Double blankValue)
b - A set of data equal in length to the original base data set.
public double pearsonCorrelation(double[] b,
boolean hasSkips,
java.lang.Double blankValue)
public double oldPearsonCorrelation(double[] b)
b - A set of data equal in length to the original base data set.
public double pearsonCorrelationStandard(double[] b)
public double pearsonCorrelationWithSkips(double[] b,
java.lang.Double blankValue)
public double spearmanCorrelationWithSkips(double[] b)
public double spearmanCorrelationWithReplacements(double[] b,
java.lang.Double blankValue)
public double spearmanCorrelationStandard(double[] b)
b - A set of data equal in length to the original base data set.
public double spearmanCorrelation(double[] b,
boolean hasSkips,
java.lang.Double blankValue)
public double spearmanCorrelation(java.lang.Object[] b,
boolean hasSkips,
java.lang.Double blankValue)
b - A set of data equal in length to the original base data set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||