<NME> VectorsTest.java
<BEF> ADDFILE
<MSG> Merge branch 'noise' into research

# Conflicts:
#	pom.xml
#	src/main/java/edu/neu/ccs/pyramid/application/ClusterLabels.java
#	src/main/java/edu/neu/ccs/pyramid/classification/logistic_regression/Weights.java
#	src/main/java/edu/neu/ccs/pyramid/clustering/bm/BMSelector.java
#	src/main/java/edu/neu/ccs/pyramid/clustering/bm/BMTrainer.java
#	src/main/java/edu/neu/ccs/pyramid/util/MathUtil.java
#	src/test/java/edu/neu/ccs/pyramid/util/MathUtilTest.java

<DFF> @@ -0,0 +1,36 @@
+package edu.neu.ccs.pyramid.util;
+
+import junit.framework.TestCase;
+import org.apache.mahout.math.DenseVector;
+import org.apache.mahout.math.Vector;
+
+/**
+ * Created by chengli on 1/21/17.
+ */
+public class VectorsTest {
+    public static void main(String[] args) {
+        double[] d = {1,2,5};
+        Vector v = new DenseVector(d);
+        System.out.println(Vectors.concatenate(v,4.5));
+
+        test2();
+        test3();
+    }
+
+    private static void test2(){
+        double[] d = {1,2,3};
+        Vector v = new DenseVector(d);
+        double[] a = {7,4,5,6};
+        System.out.println(Vectors.concatenate(v,a));
+    }
+
+
+    private static void test3(){
+        double[] d = {1,2,3};
+        Vector v = new DenseVector(d);
+        double[] a = {4,5,6,7};
+        Vector t = new DenseVector(a);
+        System.out.println(Vectors.concatenate(v,t));
+    }
+
+}
\ No newline at end of file

Merge branch 'noise' into research