Package org.apache.commons.math.stat.correlation

Examples of org.apache.commons.math.stat.correlation.PearsonsCorrelation


      }
     
      double[] concatExpArray = ArrayUtils.toPrimitive(concatExp.toArray(new Double[concatExp.size()]));
      double[] concatGSArray = ArrayUtils.toPrimitive(concatGS.toArray(new Double[concatGS.size()]));

      PearsonsCorrelation pearson = new PearsonsCorrelation();
      Double correl = pearson.correlation(concatExpArray, concatGSArray);
     
      sb.append(correl.toString());
    }
    else if (metric == PearsonMean)
    {
View Full Code Here


    }
   
    double[] expArray = ArrayUtils.toPrimitive(expScores.toArray(new Double[expScores.size()]));
    double[] gsArray = ArrayUtils.toPrimitive(gsScores.toArray(new Double[gsScores.size()]));

    PearsonsCorrelation pearson = new PearsonsCorrelation();
    Double correl = pearson.correlation(expArray, gsArray);
   
    FileUtils.writeStringToFile(
        new File(OUTPUT_DIR + "/" + mode.toString().toLowerCase() + "/" + dataset.toString() + ".txt"),
        correl.toString());
  }
View Full Code Here

      }
     
      double[] concatExpArray = ArrayUtils.toPrimitive(concatExp.toArray(new Double[concatExp.size()]));
      double[] concatGSArray = ArrayUtils.toPrimitive(concatGS.toArray(new Double[concatGS.size()]));

      PearsonsCorrelation pearson = new PearsonsCorrelation();
      Double correl = pearson.correlation(concatExpArray, concatGSArray);
     
      sb.append(correl.toString());
    }
    else if (metric == PearsonMean)
    {
View Full Code Here

    }
   
    double[] expArray = ArrayUtils.toPrimitive(expScores.toArray(new Double[expScores.size()]));
    double[] gsArray = ArrayUtils.toPrimitive(gsScores.toArray(new Double[gsScores.size()]));

    PearsonsCorrelation pearson = new PearsonsCorrelation();
    Double correl = pearson.correlation(expArray, gsArray);
   
    FileUtils.writeStringToFile(
        new File(OUTPUT_DIR + "/" + mode.toString().toLowerCase() + "/" + dataset.toString() + ".txt"),
        correl.toString());
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.math.stat.correlation.PearsonsCorrelation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.