mod chi2 function name


Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/a882c5f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/a882c5f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/a882c5f9

Branch: refs/heads/JIRA-22/pr-385
Commit: a882c5f9f8067b911254dfc43d268de06a5490f9
Parents: b8cf396
Author: amaya <g...@sapphire.in.net>
Authored: Wed Sep 21 16:00:36 2016 +0900
Committer: amaya <g...@sapphire.in.net>
Committed: Wed Sep 21 16:23:47 2016 +0900

----------------------------------------------------------------------
 core/src/main/java/hivemall/ftvec/selection/ChiSquareUDF.java | 2 +-
 core/src/main/java/hivemall/utils/math/StatsUtils.java        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/a882c5f9/core/src/main/java/hivemall/ftvec/selection/ChiSquareUDF.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/hivemall/ftvec/selection/ChiSquareUDF.java 
b/core/src/main/java/hivemall/ftvec/selection/ChiSquareUDF.java
index 70f0316..1583959 100644
--- a/core/src/main/java/hivemall/ftvec/selection/ChiSquareUDF.java
+++ b/core/src/main/java/hivemall/ftvec/selection/ChiSquareUDF.java
@@ -129,7 +129,7 @@ public class ChiSquareUDF extends GenericUDF {
             }
         }
 
-        final Map.Entry<double[], double[]> chi2 = 
StatsUtils.chiSquares(observed, expected);
+        final Map.Entry<double[], double[]> chi2 = 
StatsUtils.chiSquare(observed, expected);
 
         final Object[] result = new Object[2];
         result[0] = WritableUtils.toWritableList(chi2.getKey());

http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/a882c5f9/core/src/main/java/hivemall/utils/math/StatsUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/hivemall/utils/math/StatsUtils.java 
b/core/src/main/java/hivemall/utils/math/StatsUtils.java
index e255b84..14adbff 100644
--- a/core/src/main/java/hivemall/utils/math/StatsUtils.java
+++ b/core/src/main/java/hivemall/utils/math/StatsUtils.java
@@ -262,7 +262,7 @@ public final class StatsUtils {
      * @param expecteds means positive matrix
      * @return (chi2 value[], p value[])
      */
-    public static Map.Entry<double[], double[]> chiSquares(@Nonnull final 
double[][] observeds,
+    public static Map.Entry<double[], double[]> chiSquare(@Nonnull final 
double[][] observeds,
             @Nonnull final double[][] expecteds) {
         Preconditions.checkArgument(observeds.length == expecteds.length);
 

Reply via email to