Adding sypet to repo
[Benchmarks_CSolver.git] / sypet / benchmarks / math / 8 / Solution.java
diff --git a/sypet/benchmarks/math/8/Solution.java b/sypet/benchmarks/math/8/Solution.java
new file mode 100644 (file)
index 0000000..32b681d
--- /dev/null
@@ -0,0 +1,12 @@
+import org.apache.commons.math3.stat.regression.SimpleRegression;
+
+public class Solution {
+
+    public static double predict(double[][] arg0, double arg1) {
+        SimpleRegression v1 = new SimpleRegression();
+        v1.addData(arg0);
+        double v2 = v1.predict(arg1);
+        return v2;
+    }
+
+}