/* * TiesEquivalentRankTest.java created on Aug 24, 2005 by jdgant01 * */ package org.apache.commons.math.stat.mining; import junit.framework.TestCase; public class TiesEquivalentRankTest extends TestCase { private final double delta = 0.0; public static void main(String[] args) {} public TiesEquivalentRankTest(String arg0) { super(arg0); } protected void setUp() throws Exception { super.setUp(); } protected void tearDown() throws Exception { super.tearDown(); } public void testOne() { double [] rawScores = {2, 1, 3, 3, 5}; double [] correctRanks = {2, 1, 3, 3, 4}; TiesEquivalentRank ter = new TiesEquivalentRank(); double [] ranks = ter.rank(rawScores); for(int i=0; i