Package org.apache.commons.math.stat.ranking

Examples of org.apache.commons.math.stat.ranking.NaturalRanking$IntDoublePair


      ITuple T = (ITuple) dataValues.get(i);
      xvalues[i] = ((INumber) T.get(0)).toReal().doubleValue();
    }
   
    // Create a natural ranking: largest first.
    double rank[] = new NaturalRanking().rank(xvalues);
   
    for(int i = 0; i < rank.length; i++){
      rank[i] = rank.length - rank[i] + 1; // invert the ranking: smallest come now first.
      //System.err.println("rank[" + i + "] = " + rank[i]);
    }
View Full Code Here


     *
     * @param dataMatrix matrix of data with columns representing
     * variables to correlate
     */
    public SpearmansCorrelation(final RealMatrix dataMatrix) {
        this(dataMatrix, new NaturalRanking());
    }
View Full Code Here

    /**
     * Create a SpearmansCorrelation without data.
     */
    public SpearmansCorrelation() {
        data = null;
        this.rankingAlgorithm = new NaturalRanking();
        rankCorrelation = null;
    }
View Full Code Here

     *
     * @param dataMatrix matrix of data with columns representing
     * variables to correlate
     */
    public SpearmansCorrelation(final RealMatrix dataMatrix) {
        this(dataMatrix, new NaturalRanking());
    }
View Full Code Here

    /**
     * Create a SpearmansCorrelation without data.
     */
    public SpearmansCorrelation() {
        data = null;
        this.rankingAlgorithm = new NaturalRanking();
        rankCorrelation = null;
    }
View Full Code Here

     *
     * @param dataMatrix matrix of data with columns representing
     * variables to correlate
     */
    public SpearmansCorrelation(final RealMatrix dataMatrix) {
        this(dataMatrix, new NaturalRanking());
    }
View Full Code Here

    /**
     * Create a SpearmansCorrelation without data.
     */
    public SpearmansCorrelation() {
        data = null;
        this.rankingAlgorithm = new NaturalRanking();
        rankCorrelation = null;
    }
View Full Code Here

     *
     * @param dataMatrix matrix of data with columns representing
     * variables to correlate
     */
    public SpearmansCorrelation(final RealMatrix dataMatrix) {
        this(dataMatrix, new NaturalRanking());
    }
View Full Code Here

    /**
     * Create a SpearmansCorrelation without data.
     */
    public SpearmansCorrelation() {
        data = null;
        this.rankingAlgorithm = new NaturalRanking();
        rankCorrelation = null;
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.math.stat.ranking.NaturalRanking$IntDoublePair

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.