Examples of PearsonsCorrelation


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

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

    }
   
    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

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

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

    }
   
    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

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

                }
                yxcorr[j] += tmp * y[i];
            }
            sumysq += y[i] * y[i];
        }
        PearsonsCorrelation pearson = new PearsonsCorrelation(x);
        RealMatrix corr = pearson.getCorrelationMatrix();
        off = 0;
        for (int i = 0; i < 4; i++, off += (i + 1)) {
            diag[i] = FastMath.sqrt(cp[off]);
        }

View Full Code Here

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

      y[index] = resultPair[1];
      index++;
    }
    double mse = meanSquareError(x, y);
    double spearmans = new SpearmansCorrelation().correlation(x, y);
    double pearsons = new PearsonsCorrelation().correlation(x, y);
    double cosine = cosine(x, y);
    mse = round(mse);
    spearmans = round(spearmans);
    pearsons = round(pearsons);
    cosine = round(cosine);
View Full Code Here

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

                }
                yxcorr[j] += tmp * y[i];
            }
            sumysq += y[i] * y[i];
        }
        PearsonsCorrelation pearson = new PearsonsCorrelation(x);
        RealMatrix corr = pearson.getCorrelationMatrix();
        off = 0;
        for (int i = 0; i < 4; i++, off += (i + 1)) {
            diag[i] = FastMath.sqrt(cp[off]);
        }

View Full Code Here

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

                }
                yxcorr[j] += tmp * y[i];
            }
            sumysq += y[i] * y[i];
        }
        PearsonsCorrelation pearson = new PearsonsCorrelation(x);
        RealMatrix corr = pearson.getCorrelationMatrix();
        off = 0;
        for (int i = 0; i < 4; i++, off += (i + 1)) {
            diag[i] = FastMath.sqrt(cp[off]);
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.