<NME> EmpiricalCDFTest.java
<BEF> ADDFILE
<MSG> add EmpiricalCDF, FusedKolmogorovFilter

<DFF> @@ -0,0 +1,83 @@
+package edu.neu.ccs.pyramid.util;
+
+import org.apache.mahout.math.RandomAccessSparseVector;
+import org.apache.mahout.math.Vector;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.junit.Assert.*;
+
+public class EmpiricalCDFTest {
+    public static void main(String[] args) {
+        test5();
+
+    }
+
+    private static void test1(){
+        List<Double> list = new ArrayList<>();
+        for (int i=0;i<10;i++){
+            list.add((double)i);
+        }
+        EmpiricalCDF cdf = new EmpiricalCDF(list,9);
+        System.out.println(cdf);
+    }
+
+    private static void test2(){
+        List<Double> list = new ArrayList<>();
+        for (int i=0;i<4;i++){
+            list.add((double) i);
+        }
+        EmpiricalCDF cdf = new EmpiricalCDF(list,3);
+        System.out.println(cdf);
+    }
+
+    private static void test3(){
+        List<Double> list = new ArrayList<>();
+        for (int i=0;i<4;i++){
+            list.add((double) i);
+        }
+        for (int i=4;i<10;i++){
+            list.add(0.0);
+        }
+        EmpiricalCDF cdf = new EmpiricalCDF(list,3);
+        System.out.println(cdf);
+    }
+
+    private static void test4(){
+        List<Double> list = new ArrayList<>();
+        for (int i=0;i<4;i++){
+            list.add((double) i);
+        }
+        for (int i=4;i<10;i++){
+            list.add(0.0);
+        }
+        EmpiricalCDF cdf = new EmpiricalCDF(list);
+        System.out.println(cdf);
+    }
+
+    private static void test5(){
+        List<Double> list = new ArrayList<>();
+        for (int i=0;i<4;i++){
+            list.add((double) i);
+        }
+        for (int i=4;i<10;i++){
+            list.add(0.0);
+        }
+        EmpiricalCDF cdf = new EmpiricalCDF(list,3);
+        System.out.println(cdf);
+
+        List<Double> list2 = new ArrayList<>();
+        for (int i=0;i<8;i++){
+            list2.add((double) i);
+        }
+        for (int i=8;i<10;i++){
+            list2.add(0.0);
+        }
+        EmpiricalCDF cdf2 = new EmpiricalCDF(list2,3);
+        System.out.println(cdf2);
+        System.out.println(EmpiricalCDF.distance(cdf,cdf2));
+
+    }
+
+}
\ No newline at end of file

add EmpiricalCDF, FusedKolmogorovFilter