|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthalo.data.biascorrection.CorrelationCoefficient
halo.data.biascorrection.RCorrelationCoefficient
public class RCorrelationCoefficient
An implementation to calculate the correlation coefficient from a tabular data file with R
Field Summary | |
---|---|
static java.lang.String |
KENDAL
|
static java.lang.String |
PEARSON
|
static java.lang.String |
SPEARMAN
|
Constructor Summary | |
---|---|
RCorrelationCoefficient(java.lang.String path,
java.lang.String input)
Constructs a new object for the calculation |
Method Summary | |
---|---|
double |
calculateCorrelationCoefficient()
Start the calculation of the correlation coefficient |
void |
readRResults()
Parse the result from the output file |
void |
setFileName(java.lang.String fileName)
Sets the name of the script file |
void |
setMethod(java.lang.String method)
Sets the method for the calculation of the correlation coefficient |
void |
writeRScript()
Writes the script for R to start the calculation of a correlation coefficient for the data and write the output into an output file |
Methods inherited from class halo.data.biascorrection.CorrelationCoefficient |
---|
setInputFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PEARSON
public static final java.lang.String KENDAL
public static final java.lang.String SPEARMAN
Constructor Detail |
---|
public RCorrelationCoefficient(java.lang.String path, java.lang.String input)
path
- The path of the R installationinput
- The name of the file that holds the data tableMethod Detail |
---|
public void writeRScript()
public void readRResults()
public double calculateCorrelationCoefficient()
calculateCorrelationCoefficient
in class CorrelationCoefficient
public void setFileName(java.lang.String fileName)
fileName
- The name of the R script filepublic void setMethod(java.lang.String method)
method
- The method for the calculation of the correlation coefficient; either 'pearson',
'kendal' or 'spearman' (default)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |