Blob Blame History Raw
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Wed, 19 Sep 2018 15:26:20 +0300
Subject: [PATCH] Compile w/o export_all

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

diff --git a/src/bear.erl b/src/bear.erl
index 0502db9..4e4310b 100644
--- a/src/bear.erl
+++ b/src/bear.erl
@@ -25,8 +25,6 @@
 
 -module(bear).
 
-%-compile([export_all]).
-
 -export([
          get_statistics/1,
          get_statistics/2,
@@ -42,6 +40,38 @@
          tied_rank_worker/3
         ]).
 
+-ifdef(TEST).
+-export([
+         scan_values/1,
+         scan_values/2,
+         scan_values2/2,
+         scan_values2/3,
+	 revsort/1,
+	 arithmetic_mean/1,
+	 geometric_mean/1,
+	 harmonic_mean/1,
+	 percentile/3,
+	 variance/2,
+	 std_deviation/2,
+	 skewness/2,
+	 kurtosis/2,
+	 get_covariance/2,
+	 update_bin/3,
+	 ranks_of/1,
+	 get_pearson_correlation/2,
+	 round_bin/1,
+	 round_bin/2,
+	 get_bin_width/2,
+	 get_bin_count/3,
+	 get_kendall_correlation/2,
+	 get_spearman_correlation/2,
+	 math_log/1,
+	 inverse/1,
+	 get_hist_bins/4,
+	 perc/2
+        ]).
+-endif.
+
 -define(HIST_BINS, 10).
 
 -define(STATS_MIN, 5).