//Define parameters |
public static final String PATHTOR = "";
;
//calculate the correlation coefficient
RCorrelationCoefficient cor = new RCorrelationCoefficient(PATHTOR, evalOut);
cor.setMethod(RCorrelationCoefficient.PEARSON);
//start correlation coefficient calculation
double coefficient = cor.calculateCorrelationCoefficient();
System.out.println("The correlation coefficient: "+coefficient);
//fill mapping and corresponding arrays
String[] spots = data.getSpot();
double[] datas = data.getDat();
//Start the loess regression with R
RLoessRegression loess = new RLoessRegression(PATHTOR, evalOut, spots, datas);
HashMap |
Loading data... |
Example_mouse_quality_uracil.txt